(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestNewScheduledRunnableTask(t *testing.T) { |
| 32 | task, _ := CreateScheduledRunnableTask(0, func(ctx context.Context) { |
| 33 | |
| 34 | }, time.Now(), -1, true) |
| 35 | |
| 36 | assert.Equal(t, task.period, 0*time.Second) |
| 37 | |
| 38 | _, err := CreateScheduledRunnableTask(0, nil, time.Now(), -1, true) |
| 39 | assert.Error(t, err) |
| 40 | } |
| 41 | |
| 42 | func TestNewTriggerTask(t *testing.T) { |
| 43 | trigger, err := CreateCronTrigger("* * * * * *", time.Local) |
nothing calls this directly
no test coverage detected