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

Function TestAsyncCallMethods

cel/async/async_test.go:174–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

172func (m mockAsyncCall) Overload() string { return m.overload }
173
174func TestAsyncCallMethods(t *testing.T) {
175 m := mockAsyncCall{id: 1, function: "f", overload: "o"}
176 if m.CallID() != 1 {
177 t.Errorf("got %d, want 1", m.CallID())
178 }
179 if m.Function() != "f" {
180 t.Errorf("got %s, want f", m.Function())
181 }
182 if m.Overload() != "o" {
183 t.Errorf("got %s, want o", m.Overload())
184 }
185}
186
187func TestDrainNone(t *testing.T) {
188 s := async.DrainNone()

Callers

nothing calls this directly

Calls 3

CallIDMethod · 0.95
FunctionMethod · 0.95
OverloadMethod · 0.95

Tested by

no test coverage detected