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

Method QualifyIfPresent

interpreter/attributes.go:1145–1147  ·  view source on GitHub ↗

QualifyIfPresent is an implementation of the Qualifier interface method.

(vars Activation, obj any, presenceOnly bool)

Source from the content-addressed store, hash-verified

1143
1144// QualifyIfPresent is an implementation of the Qualifier interface method.
1145func (q *boolQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
1146 return q.qualifyInternal(vars, obj, true, presenceOnly)
1147}
1148
1149func (q *boolQualifier) qualifyInternal(vars Activation, obj any, presenceTest, presenceOnly bool) (any, bool, error) {
1150 b := q.value

Callers

nothing calls this directly

Calls 1

qualifyInternalMethod · 0.95

Tested by

no test coverage detected