(t *testing.T)
| 494 | } |
| 495 | |
| 496 | func TestCmdAdd_NoPayload(t *testing.T) { |
| 497 | cb := &mockCallbacks{} |
| 498 | h := newTestHandler(cb) |
| 499 | |
| 500 | fn := newTestFn("test:job1", "add", "job1", nil) |
| 501 | h.CmdAdd(fn) |
| 502 | |
| 503 | assert.Equal(t, 0, h.exposed.Count()) |
| 504 | } |
| 505 | |
| 506 | func TestCmdAdd_InvalidJobName(t *testing.T) { |
| 507 | cb := &mockCallbacks{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…