MCPcopy
hub / github.com/kopia/kopia / TestMaintenanceInfoSimple

Function TestMaintenanceInfoSimple

cli/command_maintenance_info_test.go:11–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestMaintenanceInfoSimple(t *testing.T) {
12 t.Parallel()
13
14 e := testenv.NewCLITest(t, testenv.RepoFormatNotImportant, testenv.NewInProcRunner(t))
15 defer e.RunAndExpectSuccess(t, "repo", "disconnect")
16
17 var mi cli.MaintenanceInfo
18
19 e.RunAndExpectSuccess(t, "repo", "create", "filesystem", "--path", e.RepoDir)
20 e.RunAndExpectSuccess(t, "maintenance", "info")
21 testutil.MustParseJSONLines(t, e.RunAndExpectSuccess(t, "maintenance", "info", "--json"), &mi)
22}

Callers

nothing calls this directly

Calls 4

RunAndExpectSuccessMethod · 0.95
NewCLITestFunction · 0.92
NewInProcRunnerFunction · 0.92
MustParseJSONLinesFunction · 0.92

Tested by

no test coverage detected