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

Method PresenceTest

cel/macro.go:511–514  ·  view source on GitHub ↗

PresenceTest creates a Select TestOnly Expr value for modelling has() semantics.

(operand *exprpb.Expr, field string)

Source from the content-addressed store, hash-verified

509
510// PresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
511func (ah *adaptingHelper) PresenceTest(operand *exprpb.Expr, field string) *exprpb.Expr {
512 op := mustAdaptToExpr(operand)
513 return mustAdaptToProto(ah.modernHelper.NewPresenceTest(op, field))
514}
515
516// Select create a field traversal Expr value.
517func (ah *adaptingHelper) Select(operand *exprpb.Expr, field string) *exprpb.Expr {

Callers

nothing calls this directly

Calls 3

mustAdaptToExprFunction · 0.85
mustAdaptToProtoFunction · 0.85
NewPresenceTestMethod · 0.65

Tested by

no test coverage detected