diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-04 14:13:20 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-04 14:13:20 +0900 |
| commit | 729be19af39fb73e827bdb2798ac23942f9cf9e5 (patch) | |
| tree | 142f876c8533e312fbfddf0348195aeb3530e7d6 /internal/pkg/archive_test.go | |
| parent | 4d04f86f4a85007544932a28bd4c779f8bfb561b (diff) | |
internal/pkg: rename archive checksum helpers
These names are more consistent with other helper names, so rename them while the API is still internal.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/archive_test.go')
| -rw-r--r-- | internal/pkg/archive_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pkg/archive_test.go b/internal/pkg/archive_test.go index a51cfee5..e04f3a66 100644 --- a/internal/pkg/archive_test.go +++ b/internal/pkg/archive_test.go @@ -141,10 +141,10 @@ func TestArchive(t *testing.T) { t.Parallel() var got pkg.Checksum - if err := pkg.HashFS(&got, tc.fsys, "."); err != nil { - t.Fatalf("HashFS: error = %v", err) + if err := pkg.SumFS(&got, tc.fsys, "."); err != nil { + t.Fatalf("SumFS: error = %v", err) } else if got != tc.sum { - t.Fatalf("HashFS: %v", &pkg.ChecksumMismatchError{ + t.Fatalf("SumFS: %v", &pkg.ChecksumMismatchError{ Got: got, Want: tc.sum, }) |
