(tb testing.TB)
| 2623 | } |
| 2624 | |
| 2625 | func newBenchmarkCategoryParser(tb testing.TB) *Parser { |
| 2626 | tb.Helper() |
| 2627 | p, err := NewParser( |
| 2628 | Macros(append(AllMacros, optMapMacro)...), |
| 2629 | EnableOptionalSyntax(true), |
| 2630 | EnableIdentEscapeSyntax(true), |
| 2631 | MaxRecursionDepth(512), |
| 2632 | ) |
| 2633 | if err != nil { |
| 2634 | tb.Fatalf("NewParser() failed: %v", err) |
| 2635 | } |
| 2636 | return p |
| 2637 | } |
| 2638 | |
| 2639 | func TestParseErrorData(t *testing.T) { |
| 2640 | p := newTestParser(t) |
no test coverage detected