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

Method HasLibrary

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

601
602// HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
603func (e *Env) HasLibrary(libName string) bool {
604 _, exists := e.libraries[libName]
605 return exists
606}
607
608// Libraries returns a list of SingletonLibrary that have been configured in the environment.
609func (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