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

Function invalidOptionalEntryInit

interpreter/interpretable.go:1466–1468  ·  view source on GitHub ↗
(field any, value ref.Val)

Source from the content-addressed store, hash-verified

1464}
1465
1466func invalidOptionalEntryInit(field any, value ref.Val) ref.Val {
1467 return types.NewErr("cannot initialize optional entry '%v' from non-optional value %v", field, value)
1468}
1469
1470func invalidOptionalElementInit(value ref.Val) ref.Val {
1471 return types.NewErr("cannot initialize optional list element from non-optional value %v", value)

Callers 2

ExecMethod · 0.85
ExecMethod · 0.85

Calls 1

NewErrFunction · 0.92

Tested by

no test coverage detected