(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestSnapshotEstimate_NotADirectory(t *testing.T) { |
| 50 | env := testenv.NewCLITest(t, testenv.RepoFormatNotImportant, testenv.NewInProcRunner(t)) |
| 51 | |
| 52 | dir := testutil.TempDirectory(t) |
| 53 | require.NoError(t, os.WriteFile(filepath.Join(dir, "file1.txt"), []byte{1, 2, 3}, 0o600)) |
| 54 | |
| 55 | env.RunAndExpectSuccess(t, "repo", "create", "filesystem", "--path", env.RepoDir) |
| 56 | env.RunAndExpectFailure(t, "snapshot", "estimate", filepath.Join(dir, "file1.txt")) |
| 57 | } |
nothing calls this directly
no test coverage detected