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

Function ErrorReportingLimit

parser/options.go:81–89  ·  view source on GitHub ↗

ErrorReportingLimit limits the number of syntax error reports before terminating parsing. The limit must be at least 1. If unset, the limit will be 100.

(limit int)

Source from the content-addressed store, hash-verified

79//
80// The limit must be at least 1. If unset, the limit will be 100.
81func ErrorReportingLimit(limit int) Option {
82 return func(opts *options) error {
83 if limit < 1 {
84 return fmt.Errorf("error reporting limit must be at least 1: %d", limit)
85 }
86 opts.errorReportingLimit = limit
87 return nil
88 }
89}
90
91// ExpressionSizeCodePointLimit is an option which limits the maximum code point count of an
92// expression.

Callers 2

parser_test.goFile · 0.85
TestParserOptionErrorsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParserOptionErrorsFunction · 0.68