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

Method QualifierValueEquals

interpreter/interpretable.go:293–296  ·  view source on GitHub ↗

QualifierValueEquals determines whether the test-only constant qualifier equals the input value.

(value any)

Source from the content-addressed store, hash-verified

291
292// QualifierValueEquals determines whether the test-only constant qualifier equals the input value.
293func (q *testOnlyQualifier) QualifierValueEquals(value any) bool {
294 // The input qualifier will always be of type string
295 return q.ConstantQualifier.Value().Value() == value
296}
297
298// NewConstValue creates a new constant valued Interpretable.
299func NewConstValue(id int64, val ref.Val) InterpretableConst {

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected