(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestDataProvider_GetTasks(t *testing.T) { |
| 10 | dir := createTestTaskDir(t) |
| 11 | dp := NewDataProvider(dir, false) |
| 12 | |
| 13 | tasks, err := dp.GetTasks() |
| 14 | if err != nil { |
| 15 | t.Fatalf("unexpected error: %v", err) |
| 16 | } |
| 17 | |
| 18 | if len(tasks) != 2 { |
| 19 | t.Fatalf("expected 2 tasks, got %d", len(tasks)) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestDataProvider_Cache(t *testing.T) { |
| 24 | dir := createTestTaskDir(t) |
nothing calls this directly
no test coverage detected