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

Function isOptionalIndex

cel/validator.go:386–393  ·  view source on GitHub ↗
(i int, optIndices []int32)

Source from the content-addressed store, hash-verified

384}
385
386func isOptionalIndex(i int, optIndices []int32) bool {
387 for _, optInd := range optIndices {
388 if i == int(optInd) {
389 return true
390 }
391 }
392 return false
393}
394
395func (homogeneousAggregateLiteralValidator) typeMismatch(iss *Issues, id int64, expected, actual *Type) {
396 iss.ReportErrorAtID(id, "expected type '%s' but found '%s'", FormatCELType(expected), FormatCELType(actual))

Callers 1

ValidateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected