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

Method HasFeature

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

637// HasFeature checks whether the environment enables the given feature
638// flag, as enumerated in options.go.
639func (e *Env) HasFeature(flag int) bool {
640 enabled, has := e.features[flag]
641 return has && enabled
642}
643
644// HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
645func (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