diff options
| author | 2026-03-06 09:07:51 +0800 | |
|---|---|---|
| committer | 2026-03-06 10:00:35 +0800 | |
| commit | ddfdffb77c4a7990057a7c984abba737f0c8402b (patch) | |
| tree | 5d8fdb9d79d72b5c39ab20793212d1ca114945d9 | |
| parent | internal/lru: Split (diff) | |
| signature | No signature | |
format/pack/ingest: Actually we could just use algo.String() here
| -rw-r--r-- | format/pack/ingest/ingest_test.go | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/format/pack/ingest/ingest_test.go b/format/pack/ingest/ingest_test.go index d3bb9e41..1bc2ec0f 100644 --- a/format/pack/ingest/ingest_test.go +++ b/format/pack/ingest/ingest_test.go @@ -14,22 +14,11 @@ import ( "codeberg.org/lindenii/furgit/repository" ) -func fixtureAlgorithmDir(algo objectid.Algorithm) string { - switch algo { //nolint:exhaustive - case objectid.AlgorithmSHA1: - return "sha1" - case objectid.AlgorithmSHA256: - return "sha256" - default: - return "" - } -} - // fixturePath returns one fixture file path for the selected algorithm. func fixturePath(t *testing.T, algo objectid.Algorithm, name string) string { t.Helper() - dir := fixtureAlgorithmDir(algo) + dir := algo.String() if dir == "" { t.Fatalf("unsupported fixture algorithm: %v", algo) } |
