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

Function ErrorReportingLimit

parser/options.go:79–87  ·  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

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

Callers 2

parser_test.goFile · 0.85
TestParserOptionErrorsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParserOptionErrorsFunction · 0.68