From f49c95662bda1f2c337dbe872644afa1ca5cbbec Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:52:58 +0800 Subject: objectid: Rename from oid --- internal/testgit/algorithms.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'internal/testgit/algorithms.go') 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) { -- cgit v1.3.1-10-gc9f91