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

Method HasFeature

cel/env.go:597–600  ·  view source on GitHub ↗

HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.

(flag int)

Source from the content-addressed store, hash-verified

595// HasFeature checks whether the environment enables the given feature
596// flag, as enumerated in options.go.
597func (e *Env) HasFeature(flag int) bool {
598 enabled, has := e.features[flag]
599 return has && enabled
600}
601
602// HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
603func (e *Env) HasLibrary(libName string) bool {

Callers 5

ToConfigMethod · 0.95
configureMethod · 0.95
initCheckerMethod · 0.95
DeclareContextProtoFunction · 0.80
newProgramFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected