(t testing.TB, gopts global.Options, checkUnused bool)
| 25 | } |
| 26 | |
| 27 | func 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 | |
| 39 | func 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 { |
no test coverage detected