aboutsummaryrefslogtreecommitdiff
path: root/protocol/v0v1/server/helpers_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 16:22:03 +0000
committerGravatar Runxi Yu2026-03-25 16:22:03 +0000
commit311edcd50f3a84f4b860bde3cb887451d74eaa11 (patch)
treebe7aa5e9a51e636358f33b1c90637b5024b70dc3 /protocol/v0v1/server/helpers_test.go
parentREADME: Split off contrib, benchmarks, remove history for now I guess, etc. (diff)
signatureNo signature
network/protocol: Rename from protocol v0.1.110
Diffstat (limited to 'protocol/v0v1/server/helpers_test.go')
-rw-r--r--protocol/v0v1/server/helpers_test.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/protocol/v0v1/server/helpers_test.go b/protocol/v0v1/server/helpers_test.go
deleted file mode 100644
index 261bbdc5..00000000
--- a/protocol/v0v1/server/helpers_test.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package server_test
-
-import (
- "bytes"
- "strings"
- "testing"
-
- objectid "codeberg.org/lindenii/furgit/object/id"
-)
-
-type bufferWriteFlusher struct {
- bytes.Buffer
-}
-
-func (bufferWriteFlusher) Flush() error {
- return nil
-}
-
-func mustHexID(tb testing.TB, algo objectid.Algorithm, digit string) objectid.ObjectID {
- tb.Helper()
-
- id, err := objectid.ParseHex(algo, strings.Repeat(digit, algo.HexLen()))
- if err != nil {
- tb.Fatalf("objectid.ParseHex(%q): %v", strings.Repeat(digit, algo.HexLen()), err)
- }
-
- return id
-}