(t testing.TB)
| 493 | } |
| 494 | |
| 495 | func nilTestExpr(t testing.TB) ast.Expr { |
| 496 | t.Helper() |
| 497 | fac := ast.NewExprFactory() |
| 498 | expr := fac.NewLiteral(1, types.NullValue) |
| 499 | expr.SetKindCase(nil) |
| 500 | if expr.Kind() != ast.UnspecifiedExprKind { |
| 501 | t.Fatalf("SetKindCase(nil) did not produce an unspecified expr kind: %v", expr.Kind()) |
| 502 | } |
| 503 | return expr |
| 504 | } |
| 505 | |
| 506 | func testIDGen(seed int64) ast.IDGenerator { |
| 507 | seen := map[int64]int64{} |
no test coverage detected