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

Function TestLiteralNil

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

Source from the content-addressed store, hash-verified

318}
319
320func TestLiteralNil(t *testing.T) {
321 expr := nilTestExpr(t)
322 if expr.AsLiteral() != nil {
323 t.Errorf("AsLiteral() got %v, wanted nil", expr.AsLiteral())
324 }
325}
326
327func TestMap(t *testing.T) {
328 fac := ast.NewExprFactory()

Callers

nothing calls this directly

Calls 2

nilTestExprFunction · 0.85
AsLiteralMethod · 0.65

Tested by

no test coverage detected