MCPcopy
hub / github.com/kopia/kopia / mustFindTask

Function mustFindTask

internal/uitask/uitask_test.go:379–392  ·  view source on GitHub ↗
(t *testing.T, tasks []uitask.Info, tid string)

Source from the content-addressed store, hash-verified

377}
378
379func mustFindTask(t *testing.T, tasks []uitask.Info, tid string) uitask.Info {
380 t.Helper()
381
382 //nolint:gocritic
383 for _, tsk := range tasks {
384 if tsk.TaskID == tid {
385 return tsk
386 }
387 }
388
389 t.Fatalf("task %v not found among %v", tid, tasks)
390
391 return uitask.Info{}
392}

Callers 1

verifyTaskListFunction · 0.85

Calls 2

HelperMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected