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

Method HasValidator

cel/env.go:746–753  ·  view source on GitHub ↗

HasValidator returns whether a specific ASTValidator has been configured in the environment.

(name string)

Source from the content-addressed store, hash-verified

744
745// HasValidator returns whether a specific ASTValidator has been configured in the environment.
746func (e *Env) HasValidator(name string) bool {
747 for _, v := range e.validators {
748 if v.Name() == name {
749 return true
750 }
751 }
752 return false
753}
754
755// Validators returns a shallow copy of the set of ASTValidators configured on the environment.
756func (e *Env) Validators() []ASTValidator {

Callers

nothing calls this directly

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected