MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewValidator

Function NewValidator

common/env/env.go:693–695  ·  view source on GitHub ↗

NewValidator returns a named Validator instance.

(name string)

Source from the content-addressed store, hash-verified

691
692// NewValidator returns a named Validator instance.
693func NewValidator(name string) *Validator {
694 return &Validator{Name: name}
695}
696
697// Validator represents a named validator with an optional map-based configuration object.
698//

Callers 12

envToValidatorsFunction · 0.92
ToConfigMethod · 0.92
ToConfigMethod · 0.92
ToConfigMethod · 0.92
TestEnvToConfigFunction · 0.92
TestEnvFromConfigFunction · 0.92
TestEnvFromConfigErrorsFunction · 0.92
ToConfigMethod · 0.92
TestConfigFunction · 0.85
TestConfigValidateErrorsFunction · 0.85
TestValidatorValidateFunction · 0.85
TestValidatorConfigValueFunction · 0.85

Calls

no outgoing calls

Tested by 8

TestEnvToConfigFunction · 0.74
TestEnvFromConfigFunction · 0.74
TestEnvFromConfigErrorsFunction · 0.74
ToConfigMethod · 0.74
TestConfigFunction · 0.68
TestConfigValidateErrorsFunction · 0.68
TestValidatorValidateFunction · 0.68
TestValidatorConfigValueFunction · 0.68