MCPcopy
hub / github.com/kopia/kopia / verifyHasLine

Function verifyHasLine

cli/command_notification_template_test.go:125–133  ·  view source on GitHub ↗
(t *testing.T, lines []string, ok func(s string) bool)

Source from the content-addressed store, hash-verified

123}
124
125func verifyHasLine(t *testing.T, lines []string, ok func(s string) bool) {
126 t.Helper()
127
128 if slices.ContainsFunc(lines, ok) {
129 return
130 }
131
132 t.Errorf("output line meeting given condition was not found: %v", lines)
133}

Callers 1

Calls 2

HelperMethod · 0.80
ErrorfMethod · 0.80

Tested by

no test coverage detected