aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--object/blob/append.go (renamed from object/blob/serialize.go)4
-rw-r--r--object/blob/append_test.go (renamed from object/blob/serialize_test.go)2
2 files changed, 3 insertions, 3 deletions
diff --git a/object/blob/serialize.go b/object/blob/append.go
index 2dcc147f..9d912223 100644
--- a/object/blob/serialize.go
+++ b/object/blob/append.go
@@ -5,12 +5,12 @@ import (
"codeberg.org/lindenii/furgit/object/typ"
)
-// BytesWithoutHeader renders the raw blob body bytes.
+// AppendWithoutHeader renders the raw blob body bytes.
func (blob *Blob) AppendWithoutHeader(dst []byte) ([]byte, error) {
return append(dst, blob.Data...), nil
}
-// BytesWithHeader renders the raw object (header + body).
+// AppendWithHeader renders the raw object (header + body).
func (blob *Blob) AppendWithHeader(dst []byte) ([]byte, error) {
dst = header.Append(dst, typ.TypeBlob, uint64(len(blob.Data)))
diff --git a/object/blob/serialize_test.go b/object/blob/append_test.go
index 62a0b9a9..51f92c48 100644
--- a/object/blob/serialize_test.go
+++ b/object/blob/append_test.go
@@ -8,7 +8,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
)
-func TestBlobSerialize(t *testing.T) {
+func TestBlobAppend(t *testing.T) {
t.Parallel()
testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) { //nolint:thelper
testRepo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: true})