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

Function TestAstToStringNil

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

Source from the content-addressed store, hash-verified

288}
289
290func TestAstToStringNil(t *testing.T) {
291 expr, err := AstToString(nil)
292 if err == nil || !strings.Contains(err.Error(), "unsupported expr") {
293 t.Errorf("env.AstToString() got (%v, %v) wanted unsupported expr error", expr, err)
294 }
295}
296
297func TestAstToCheckedExprNil(t *testing.T) {
298 expr, err := AstToCheckedExpr(nil)

Callers

nothing calls this directly

Calls 3

AstToStringFunction · 0.85
ContainsMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected