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

Method HasLibrary

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

643
644// HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
645func (e *Env) HasLibrary(libName string) bool {
646 _, exists := e.libraries[libName]
647 return exists
648}
649
650// Libraries returns a list of SingletonLibrary that have been configured in the environment.
651func (e *Env) Libraries() []string {

Callers 5

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

Calls

no outgoing calls

Tested by 1

TestLibrariesFunction · 0.76