(tb testing.TB, options ...Option)
| 3888 | } |
| 3889 | |
| 3890 | func newBenchmarkCategoryParser(tb testing.TB, options ...Option) *Parser { |
| 3891 | tb.Helper() |
| 3892 | opts := append([]Option{ |
| 3893 | Macros(append(AllMacros, optMapMacro)...), |
| 3894 | EnableOptionalSyntax(true), |
| 3895 | EnableIdentEscapeSyntax(true), |
| 3896 | MaxRecursionDepth(512), |
| 3897 | }, options...) |
| 3898 | p, err := NewParser(opts...) |
| 3899 | if err != nil { |
| 3900 | tb.Fatalf("NewParser() failed: %v", err) |
| 3901 | } |
| 3902 | return p |
| 3903 | } |
| 3904 | |
| 3905 | func TestParseErrorData(t *testing.T) { |
| 3906 | for _, pratt := range []bool{false, true} { |
no test coverage detected