(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestCommandBenchmarkCompression(t *testing.T) { |
| 50 | t.Parallel() |
| 51 | |
| 52 | runner := testenv.NewInProcRunner(t) |
| 53 | e := testenv.NewCLITest(t, testenv.RepoFormatNotImportant, runner) |
| 54 | |
| 55 | testFile := filepath.Join(testutil.TempDirectory(t), "testfile.txt") |
| 56 | os.WriteFile(testFile, bytes.Repeat([]byte{1, 2, 3, 4, 5, 6}, 10000), 0o600) |
| 57 | |
| 58 | e.RunAndExpectSuccess(t, "benchmark", "compression", "--data-file", testFile, "--repeat=2", "--verify-stable", "--print-options") |
| 59 | e.RunAndExpectSuccess(t, "benchmark", "compression", "--data-file", testFile, "--repeat=2", "--by-size") |
| 60 | } |
nothing calls this directly
no test coverage detected