(t *testing.T)
| 254 | } |
| 255 | |
| 256 | func 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 | |
| 263 | func TestAstToParsedExprNil(t *testing.T) { |
| 264 | expr, err := AstToParsedExpr(nil) |
nothing calls this directly
no test coverage detected