diff options
| author | 2026-02-20 22:52:58 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:52:58 +0800 | |
| commit | f49c95662bda1f2c337dbe872644afa1ca5cbbec (patch) | |
| tree | 502b399c86f0093b50ad5fc80b73f75f4c614733 /internal/testgit/algorithms.go | |
| parent | config: Import from the previous version and fix test harnesses (diff) | |
| signature | No signature | |
objectid: Rename from oid
Diffstat (limited to 'internal/testgit/algorithms.go')
| -rw-r--r-- | internal/testgit/algorithms.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/testgit/algorithms.go b/internal/testgit/algorithms.go index 833b846b..6d7a7565 100644 --- a/internal/testgit/algorithms.go +++ b/internal/testgit/algorithms.go @@ -3,19 +3,19 @@ package testgit import ( "testing" - "codeberg.org/lindenii/furgit/oid" + "codeberg.org/lindenii/furgit/objectid" ) // SupportedAlgorithms returns all object ID algorithms supported by furgit. -func SupportedAlgorithms() []oid.Algorithm { - return []oid.Algorithm{ - oid.AlgorithmSHA1, - oid.AlgorithmSHA256, +func SupportedAlgorithms() []objectid.Algorithm { + return []objectid.Algorithm{ + objectid.AlgorithmSHA1, + objectid.AlgorithmSHA256, } } // ForEachAlgorithm runs a subtest for every supported algorithm. -func ForEachAlgorithm(t *testing.T, fn func(t *testing.T, algo oid.Algorithm)) { +func ForEachAlgorithm(t *testing.T, fn func(t *testing.T, algo objectid.Algorithm)) { t.Helper() for _, algo := range SupportedAlgorithms() { t.Run(algo.String(), func(t *testing.T) { |
