MCPcopy
hub / github.com/restic/restic / testRunCheckOutput

Function testRunCheckOutput

cmd/restic/cmd_check_integration_test.go:27–37  ·  view source on GitHub ↗
(t testing.TB, gopts global.Options, checkUnused bool)

Source from the content-addressed store, hash-verified

25}
26
27func testRunCheckOutput(t testing.TB, gopts global.Options, checkUnused bool) (string, error) {
28 buf, err := withCaptureStdout(t, gopts, func(ctx context.Context, gopts global.Options) error {
29 opts := CheckOptions{
30 ReadData: true,
31 CheckUnused: checkUnused,
32 }
33 _, err := runCheck(context.TODO(), opts, gopts, nil, gopts.Term)
34 return err
35 })
36 return buf.String(), err
37}
38
39func testRunCheckOutputWithOpts(t testing.TB, gopts global.Options, opts CheckOptions, args []string) (string, error) {
40 buf, err := withCaptureStdout(t, gopts, func(ctx context.Context, gopts global.Options) error {

Callers 6

testRebuildIndexFunction · 0.85
testRunCheckFunction · 0.85
testRunCheckMustFailFunction · 0.85

Calls 3

withCaptureStdoutFunction · 0.85
runCheckFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected