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

Function TestFunctionAddDuplicateOverloads

common/decls/decls_test.go:555–563  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

553}
554
555func TestFunctionAddDuplicateOverloads(t *testing.T) {
556 _, err := NewFunction("max",
557 Overload("max_int", []*types.Type{types.IntType}, types.IntType),
558 Overload("max_int", []*types.Type{types.IntType}, types.IntType),
559 )
560 if err != nil {
561 t.Fatalf("NewFunction() with duplicate overload signature failed: %v", err)
562 }
563}
564
565func TestFunctionAddDuplicateOverloadsPreservesBinding(t *testing.T) {
566 f, err := NewFunction("max",

Callers

nothing calls this directly

Calls 2

NewFunctionFunction · 0.70
OverloadFunction · 0.70

Tested by

no test coverage detected