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

Function EnableErrorOnBadPresenceTest

cel/library.go:682–684  ·  view source on GitHub ↗

EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field selection is performed on a primitive type.

(value bool)

Source from the content-addressed store, hash-verified

680// EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field
681// selection is performed on a primitive type.
682func EnableErrorOnBadPresenceTest(value bool) EnvOption {
683 return features(featureEnableErrorOnBadPresenceTest, value)
684}
685
686func decorateOptionalOr(i interpreter.InterpretableV2) (interpreter.InterpretableV2, error) {
687 call, ok := i.(interpreter.InterpretableCall)

Callers 2

initFunction · 0.92

Calls 1

featuresFunction · 0.85

Tested by 2

initFunction · 0.74