MCPcopy Create free account
hub / github.com/cel-expr/cel-go / newBenchmarkCategoryParser

Function newBenchmarkCategoryParser

parser/parser_test.go:2625–2637  ·  view source on GitHub ↗
(tb testing.TB)

Source from the content-addressed store, hash-verified

2623}
2624
2625func 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
2639func TestParseErrorData(t *testing.T) {
2640 p := newTestParser(t)

Callers 2

BenchmarkByCategoryFunction · 0.85

Calls 5

EnableOptionalSyntaxFunction · 0.85
EnableIdentEscapeSyntaxFunction · 0.85
MaxRecursionDepthFunction · 0.85
NewParserFunction · 0.70
MacrosFunction · 0.70

Tested by

no test coverage detected