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

Function isOptionalIndex

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

Source from the content-addressed store, hash-verified

422}
423
424func isOptionalIndex(i int, optIndices []int32) bool {
425 for _, optInd := range optIndices {
426 if i == int(optInd) {
427 return true
428 }
429 }
430 return false
431}
432
433func (homogeneousAggregateLiteralValidator) typeMismatch(iss *Issues, id int64, expected, actual *Type) {
434 iss.ReportErrorAtID(id, "expected type '%s' but found '%s'", FormatCELType(expected), FormatCELType(actual))

Callers 1

ValidateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected