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

Method NewPresenceTest

parser/helper.go:489–491  ·  view source on GitHub ↗

NewPresenceTest implements the ExprHelper interface method.

(operand ast.Expr, field string)

Source from the content-addressed store, hash-verified

487
488// NewPresenceTest implements the ExprHelper interface method.
489func (e *exprHelper) NewPresenceTest(operand ast.Expr, field string) ast.Expr {
490 return e.exprFactory.NewPresenceTest(e.nextMacroID(), operand, field)
491}
492
493// NewSelect implements the ExprHelper interface method.
494func (e *exprHelper) NewSelect(operand ast.Expr, field string) ast.Expr {

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewPresenceTestMethod · 0.65

Tested by

no test coverage detected