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

Method HasFunction

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

616
617// HasFunction returns whether a specific function has been configured in the environment
618func (e *Env) HasFunction(functionName string) bool {
619 _, ok := e.functions[functionName]
620 return ok
621}
622
623// Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
624func (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