MCPcopy Create free account
hub / github.com/codnect/chrono / TestNewSchedulerTask_WithInvalidLocation

Function TestNewSchedulerTask_WithInvalidLocation

task_test.go:24–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func TestNewSchedulerTask_WithInvalidLocation(t *testing.T) {
25 _, err := CreateSchedulerTask(func(ctx context.Context) {
26
27 }, WithLocation("Europe"))
28 assert.Error(t, err)
29}
30
31func TestNewScheduledRunnableTask(t *testing.T) {
32 task, _ := CreateScheduledRunnableTask(0, func(ctx context.Context) {

Callers

nothing calls this directly

Calls 2

CreateSchedulerTaskFunction · 0.85
WithLocationFunction · 0.85

Tested by

no test coverage detected