(t *testing.T)
| 482 | } |
| 483 | |
| 484 | func TestCmdAdd_InvalidArgs(t *testing.T) { |
| 485 | cb := &mockCallbacks{} |
| 486 | h := newTestHandler(cb) |
| 487 | |
| 488 | // Only 2 args (need 3). |
| 489 | fn := newTestFn("test:job1", "add", "", nil) |
| 490 | fn.fn.Args = fn.fn.Args[:2] |
| 491 | h.CmdAdd(fn) |
| 492 | |
| 493 | assert.Equal(t, 0, h.exposed.Count()) |
| 494 | } |
| 495 | |
| 496 | func TestCmdAdd_NoPayload(t *testing.T) { |
| 497 | cb := &mockCallbacks{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…