From 279a977c56dba8cdb1c6bf797d8fdcf28a618b44 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 24 May 2026 08:04:05 +0000 Subject: object/{blob,commit}: Remove testgit and other unsatisfied dependencies for now This should be reverted (literally, or in effect) sometime. --- object/blob/parse_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 object/blob/parse_test.go (limited to 'object/blob/parse_test.go') diff --git a/object/blob/parse_test.go b/object/blob/parse_test.go deleted file mode 100644 index 09d5d5d0..00000000 --- a/object/blob/parse_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package blob_test - -import ( - "bytes" - "testing" - - "codeberg.org/lindenii/furgit/internal/testgit" - "codeberg.org/lindenii/furgit/object/blob" - objectid "codeberg.org/lindenii/furgit/object/id" -) - -func TestBlobParseFromGit(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}) - body := []byte("hello\nblob\n") - blobID := testRepo.HashObject(t, "blob", body) - - rawBody := testRepo.CatFile(t, "blob", blobID) - - parsed, err := blob.Parse(rawBody) - if err != nil { - t.Fatalf("ParseBlob: %v", err) - } - - if !bytes.Equal(parsed.Data, body) { - t.Fatalf("blob body mismatch") - } - }) -} -- cgit v1.3.1-10-gc9f91