diff options
| author | 2026-03-30 19:40:23 +0000 | |
|---|---|---|
| committer | 2026-03-30 19:40:23 +0000 | |
| commit | 84342973be94c2981fac56c6680d9f87eb9fa9ce (patch) | |
| tree | e0c95866bf8ddfebd17017426f78e528a96585e8 /repository/write_loose_test.go | |
| parent | object/store: Unify writers and fix naming (diff) | |
| signature | No signature | |
repository: Use dual v0.1.161
Diffstat (limited to 'repository/write_loose_test.go')
| -rw-r--r-- | repository/write_loose_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/repository/write_loose_test.go b/repository/write_loose_test.go index a0354f98..d1fa479c 100644 --- a/repository/write_loose_test.go +++ b/repository/write_loose_test.go @@ -23,7 +23,7 @@ func TestWriteLooseBytesContent(t *testing.T) { content := []byte("write-loose-bytes-content\n") - gotID, err := repo.LooseStoreForWriting().WriteBytesContent(objecttype.TypeBlob, content) + gotID, err := repo.Objects().WriteBytesContent(objecttype.TypeBlob, content) if err != nil { t.Fatalf("WriteLooseBytesContent: %v", err) } @@ -62,7 +62,7 @@ func TestWriteLooseReaderContent(t *testing.T) { content := []byte("write-loose-reader-content\n") - gotID, err := repo.LooseStoreForWriting().WriteReaderContent(objecttype.TypeBlob, int64(len(content)), bytes.NewReader(content)) + gotID, err := repo.Objects().WriteReaderContent(objecttype.TypeBlob, int64(len(content)), bytes.NewReader(content)) if err != nil { t.Fatalf("WriteLooseReaderContent: %v", err) } @@ -92,7 +92,7 @@ func TestWriteLooseFull(t *testing.T) { t.Fatalf("ReadStoredBytesFull: %v", err) } - idFromBytes, err := repo.LooseStoreForWriting().WriteBytesFull(raw) + idFromBytes, err := repo.Objects().WriteBytesFull(raw) if err != nil { t.Fatalf("WriteLooseBytesFull: %v", err) } @@ -101,7 +101,7 @@ func TestWriteLooseFull(t *testing.T) { t.Fatalf("WriteLooseBytesFull id = %s, want %s", idFromBytes, commitID) } - idFromReader, err := repo.LooseStoreForWriting().WriteReaderFull(bytes.NewReader(raw)) + idFromReader, err := repo.Objects().WriteReaderFull(bytes.NewReader(raw)) if err != nil { t.Fatalf("WriteLooseReaderFull: %v", err) } |
