diff options
| author | 2026-05-24 08:04:05 +0000 | |
|---|---|---|
| committer | 2026-05-24 08:04:47 +0000 | |
| commit | 279a977c56dba8cdb1c6bf797d8fdcf28a618b44 (patch) | |
| tree | d99fbaa87a9376605cc35abce39ad533551ed8ba /object/blob/parse_test.go | |
| parent | internal/testgit: Add doc (diff) | |
| signature | No signature | |
object/{blob,commit}: Remove testgit and other unsatisfied dependencies for now
This should be reverted (literally, or in effect) sometime.
Diffstat (limited to 'object/blob/parse_test.go')
| -rw-r--r-- | object/blob/parse_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
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") - } - }) -} |
