(t *testing.T)
| 1473 | } |
| 1474 | |
| 1475 | func TestParserErrorRecoveryLimit(t *testing.T) { |
| 1476 | env, err := NewEnv(ParserErrorRecoveryLimit(10)) |
| 1477 | if err != nil { |
| 1478 | t.Fatalf("NewEnv(ParserErrorRecoveryLimit(10)) failed: %v", err) |
| 1479 | } |
| 1480 | if env.limits[limitParseErrorRecovery] != 10 { |
| 1481 | t.Errorf("limitParseErrorRecovery = %d, want 10", env.limits[limitParseErrorRecovery]) |
| 1482 | } |
| 1483 | } |
| 1484 | |
| 1485 | func TestEnableHiddenAccumulatorName(t *testing.T) { |
| 1486 | _, err := NewEnv(EnableHiddenAccumulatorName(true)) |
nothing calls this directly
no test coverage detected