MCPcopy
hub / github.com/kopia/kopia / getTaskID

Function getTaskID

internal/uitask/uitask_test.go:340–353  ·  view source on GitHub ↗
(t *testing.T, m *uitask.Manager, desc string)

Source from the content-addressed store, hash-verified

338}
339
340func getTaskID(t *testing.T, m *uitask.Manager, desc string) string {
341 t.Helper()
342
343 //nolint:gocritic
344 for _, tsk := range m.ListTasks() {
345 if tsk.Description == desc {
346 return tsk.TaskID
347 }
348 }
349
350 t.Fatalf("task with description %v was not found", desc)
351
352 return ""
353}
354
355func verifyTaskLog(t *testing.T, m *uitask.Manager, taskID string, want []string) {
356 t.Helper()

Callers 1

testUITaskInternalFunction · 0.85

Calls 3

HelperMethod · 0.80
ListTasksMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected