Function
mustWriteObject
(t *testing.T, om *Manager, data []byte, compressor compression.Name)
Source from the content-addressed store, hash-verified
| 678 | } |
| 679 | |
| 680 | func mustWriteObject(t *testing.T, om *Manager, data []byte, compressor compression.Name) ID { |
| 681 | t.Helper() |
| 682 | |
| 683 | w := om.NewWriter(testlogging.Context(t), WriterOptions{Compressor: compressor}) |
| 684 | defer w.Close() |
| 685 | |
| 686 | _, err := w.Write(data) |
| 687 | require.NoError(t, err) |
| 688 | |
| 689 | oid, err := w.Result() |
| 690 | require.NoError(t, err) |
| 691 | |
| 692 | return oid |
| 693 | } |
| 694 | |
| 695 | func TestReader(t *testing.T) { |
| 696 | ctx := testlogging.Context(t) |
Tested by
no test coverage detected