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

Function ErrorReportingLimit

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

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

Callers 2

parser_test.goFile · 0.85
TestParserOptionErrorsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParserOptionErrorsFunction · 0.68