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

Method HasLibrary

cel/env.go:710–713  ·  view source on GitHub ↗

HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.

(libName string)

Source from the content-addressed store, hash-verified

708
709// HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
710func (e *Env) HasLibrary(libName string) bool {
711 _, exists := e.libraries[libName]
712 return exists
713}
714
715// Libraries returns a list of SingletonLibrary that have been configured in the environment.
716func (e *Env) Libraries() []string {

Callers 6

ToConfigMethod · 0.95
initCheckerMethod · 0.95
TestLibrariesFunction · 0.95
CompileOptionsMethod · 0.80
configToEnvOptionsFunction · 0.80
LibFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLibrariesFunction · 0.76