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

Function TestIdentNil

common/ast/expr_test.go:277–282  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

275}
276
277func TestIdentNil(t *testing.T) {
278 expr := nilTestExpr(t)
279 if expr.AsIdent() != "" {
280 t.Errorf("AsIdent() got %s, wanted ''", expr.AsIdent())
281 }
282}
283
284func TestList(t *testing.T) {
285 fac := ast.NewExprFactory()

Callers

nothing calls this directly

Calls 2

nilTestExprFunction · 0.85
AsIdentMethod · 0.65

Tested by

no test coverage detected