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

Method QualifyIfPresent

interpreter/attributes.go:845–847  ·  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

843
844// QualifyIfPresent is an implementation of the Qualifier interface method.
845func (q *stringQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
846 return q.qualifyInternal(vars, obj, true, presenceOnly)
847}
848
849func (q *stringQualifier) qualifyInternal(vars Activation, obj any, presenceTest, presenceOnly bool) (any, bool, error) {
850 s := q.value

Callers

nothing calls this directly

Calls 1

qualifyInternalMethod · 0.95

Tested by

no test coverage detected