From 88f6ca2fb24973b78afe76f82ea86171e40fccff Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 2 Mar 2026 10:54:03 +0200 Subject: store/cli: deduplicate shred helper (task 400) --- internal/cli/cli_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/cli/cli_test.go') diff --git a/internal/cli/cli_test.go b/internal/cli/cli_test.go index 2ad52db..39c79aa 100644 --- a/internal/cli/cli_test.go +++ b/internal/cli/cli_test.go @@ -134,7 +134,7 @@ func TestPrintHelp(t *testing.T) { } } -// TestShredFileCli verifies that shredFile removes a temporary file. +// TestShredFileCli verifies that store.ShredFile removes a temporary file. // It uses a temp file so no live data is affected. func TestShredFileCli(t *testing.T) { dir := t.TempDir() @@ -144,12 +144,12 @@ func TestShredFileCli(t *testing.T) { } ctx := t.Context() - if err := shredFile(ctx, target); err != nil { - t.Fatalf("shredFile: %v", err) + if err := store.ShredFile(ctx, target); err != nil { + t.Fatalf("ShredFile: %v", err) } if _, err := os.Stat(target); err == nil { - t.Errorf("file %q still exists after shredFile", target) + t.Errorf("file %q still exists after ShredFile", target) } } -- cgit v1.2.3