MCPcopy
hub / github.com/kopia/kopia / verifyTemplateContents

Function verifyTemplateContents

cli/command_notification_template_test.go:118–123  ·  view source on GitHub ↗
(t *testing.T, e *testenv.CLITest, templateName string, expectedLines []string)

Source from the content-addressed store, hash-verified

116}
117
118func verifyTemplateContents(t *testing.T, e *testenv.CLITest, templateName string, expectedLines []string) {
119 t.Helper()
120
121 lines := e.RunAndExpectSuccess(t, "notification", "template", "show", ""+templateName)
122 require.Equal(t, expectedLines, lines)
123}
124
125func verifyHasLine(t *testing.T, lines []string, ok func(s string) bool) {
126 t.Helper()

Callers 1

Calls 3

HelperMethod · 0.80
EqualMethod · 0.80
RunAndExpectSuccessMethod · 0.65

Tested by

no test coverage detected