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

Function TestAstToCheckedExprNil

cel/io_test.go:256–261  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

254}
255
256func TestAstToCheckedExprNil(t *testing.T) {
257 expr, err := AstToCheckedExpr(nil)
258 if err == nil || !strings.Contains(err.Error(), "cannot convert unchecked ast") {
259 t.Errorf("env.AstToCheckedExpr() got (%v, %v) wanted conversion error", expr, err)
260 }
261}
262
263func TestAstToParsedExprNil(t *testing.T) {
264 expr, err := AstToParsedExpr(nil)

Callers

nothing calls this directly

Calls 3

AstToCheckedExprFunction · 0.85
ContainsMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected