(t *testing.T)
| 172 | func (m mockAsyncCall) Overload() string { return m.overload } |
| 173 | |
| 174 | func 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 | |
| 187 | func TestDrainNone(t *testing.T) { |
| 188 | s := async.DrainNone() |