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

Function OverloadIsNonStrict

common/decls/decls.go:1011–1016  ·  view source on GitHub ↗

OverloadIsNonStrict enables the function to be called with error and unknown argument values. Note: do not use this option unless absoluately necessary as it should be an uncommon feature.

()

Source from the content-addressed store, hash-verified

1009//
1010// Note: do not use this option unless absoluately necessary as it should be an uncommon feature.
1011func OverloadIsNonStrict() OverloadOpt {
1012 return func(o *OverloadDecl) (*OverloadDecl, error) {
1013 o.nonStrict = true
1014 return o, nil
1015 }
1016}
1017
1018// OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be
1019// successfully invoked.

Callers 4

testDataFunction · 0.92
OverloadIsNonStrictFunction · 0.92
initFunction · 0.92
TestOverloadIsNonStrictFunction · 0.70

Calls

no outgoing calls

Tested by 2

testDataFunction · 0.74
TestOverloadIsNonStrictFunction · 0.56