diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 23:40:56 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 23:40:56 +0200 |
| commit | bb8b547023b0867f31d7452faceef5769a45b94b (patch) | |
| tree | 9daf9efd0ac5336747483557976a83ac5725b956 /cmd/krino/sort_test.go | |
| parent | c09020c2fb01da24d5befbed78ce3b73b5efbe4c (diff) | |
| download | krino-bb8b547023b0867f31d7452faceef5769a45b94b.tar.gz krino-bb8b547023b0867f31d7452faceef5769a45b94b.zip | |
explain: shows a duplicate's skipped delete, leaves the cache alone, walks only for duplicate tests
Diffstat (limited to 'cmd/krino/sort_test.go')
| -rw-r--r-- | cmd/krino/sort_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/krino/sort_test.go b/cmd/krino/sort_test.go index 321c9e8..12edb24 100644 --- a/cmd/krino/sort_test.go +++ b/cmd/krino/sort_test.go @@ -225,4 +225,10 @@ func TestDryRunShowsNeverDeletedSkip(t *testing.T) { if !strings.Contains(out, "skipped: a duplicate is never deleted") { t.Errorf("plan lacks the skipped delete:\n%s", out) } + // explain shows it too, for the copy that is the duplicate (triage 30a). + _, outA, _ := runCLI(t, "explain", filepath.Join(dl, "a.pdf")) + _, outB, _ := runCLI(t, "explain", filepath.Join(dl, "b.pdf")) + if strings.Count(outA+outB, "a duplicate is never deleted") != 1 { + t.Errorf("explain should name the skipped delete for exactly one copy:\n%s\n%s", outA, outB) + } } |
