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

Function EnableErrorOnBadPresenceTest

interpreter/attributes.go:134–139  ·  view source on GitHub ↗

EnableErrorOnBadPresenceTest 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

132// EnableErrorOnBadPresenceTest error generation when a presence test or optional field selection
133// is performed on a primitive type.
134func EnableErrorOnBadPresenceTest(value bool) AttrFactoryOption {
135 return func(fac *attrFactory) *attrFactory {
136 fac.errorOnBadPresenceTest = value
137 return fac
138 }
139}
140
141// NewAttributeFactory returns a default AttributeFactory which is produces Attribute values
142// capable of resolving types by simple names and qualify the values using the supported qualifier

Callers 2

newProgramFunction · 0.92
testDataFunction · 0.70

Calls

no outgoing calls

Tested by 1

testDataFunction · 0.56