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

Function TestNewCall

interpreter/interpreter_test.go:2604–2609  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2602}
2603
2604func TestNewCall(t *testing.T) {
2605 call := NewCall(10, "f", "f_overload", []InterpretableV2{NewConstValue(1, types.IntOne)}, func(args ...ref.Val) ref.Val { return types.True })
2606 if call.ID() != 10 {
2607 t.Errorf("NewCall.ID() = %d, wanted 10", call.ID())
2608 }
2609}
2610
2611func TestExhaustiveOperatorsLegacyEval(t *testing.T) {
2612 reg, _ := types.NewRegistry()

Callers

nothing calls this directly

Calls 3

NewCallFunction · 0.85
NewConstValueFunction · 0.85
IDMethod · 0.65

Tested by

no test coverage detected