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

Method HasFunction

cel/env.go:660–663  ·  view source on GitHub ↗

HasFunction returns whether a specific function has been configured in the environment

(functionName string)

Source from the content-addressed store, hash-verified

658
659// HasFunction returns whether a specific function has been configured in the environment
660func (e *Env) HasFunction(functionName string) bool {
661 _, ok := e.functions[functionName]
662 return ok
663}
664
665// Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
666func (e *Env) Functions() map[string]*decls.FunctionDecl {

Callers 2

TestFunctionsFunction · 0.95
TestFunctionsForVersionsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestFunctionsFunction · 0.76
TestFunctionsForVersionsFunction · 0.64