aboutsummaryrefslogtreecommitdiff
path: root/protocol/pktline/parse_length_header_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/pktline/parse_length_header_test.go')
-rw-r--r--protocol/pktline/parse_length_header_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/protocol/pktline/parse_length_header_test.go b/protocol/pktline/parse_length_header_test.go
deleted file mode 100644
index 4bc743dd..00000000
--- a/protocol/pktline/parse_length_header_test.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package pktline_test
-
-import (
- "errors"
- "testing"
-
- "codeberg.org/lindenii/furgit/protocol/pktline"
-)
-
-func TestParseLengthHeader(t *testing.T) {
- t.Parallel()
-
- n, err := pktline.ParseLengthHeader([4]byte{'0', '0', '0', '4'})
- if err != nil {
- t.Fatalf("unexpected error: %v", err)
- }
-
- if n != 4 {
- t.Fatalf("got %d, want 4", n)
- }
-
- _, err = pktline.ParseLengthHeader([4]byte{'0', '0', '0', 'x'})
- if !errors.Is(err, pktline.ErrInvalidLength) {
- t.Fatalf("got err %v, want ErrInvalidLength", err)
- }
-}