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

Method HasFunction

cel/env.go:725–728  ·  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

723
724// HasFunction returns whether a specific function has been configured in the environment
725func (e *Env) HasFunction(functionName string) bool {
726 _, ok := e.functions[functionName]
727 return ok
728}
729
730// Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
731func (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