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

Method QualifyIfPresent

interpreter/interpretable.go:302–305  ·  view source on GitHub ↗

QualifyIfPresent returns whether the target field in the test-only expression is present.

(vars Activation, obj any, presenceOnly bool)

Source from the content-addressed store, hash-verified

300
301// QualifyIfPresent returns whether the target field in the test-only expression is present.
302func (q *testOnlyQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
303 // Only ever test for presence.
304 return q.ConstantQualifier.QualifyIfPresent(vars, obj, true)
305}
306
307// QualifierValueEquals determines whether the test-only constant qualifier equals the input value.
308func (q *testOnlyQualifier) QualifierValueEquals(value any) bool {

Callers

nothing calls this directly

Calls 1

QualifyIfPresentMethod · 0.65

Tested by

no test coverage detected