(t *testing.T)
| 283 | } |
| 284 | |
| 285 | func TestWriterCompleteChunkInTwoWrites(t *testing.T) { |
| 286 | ctx := testlogging.Context(t) |
| 287 | _, _, om := setupTest(t, nil) |
| 288 | |
| 289 | b := make([]byte, 100) |
| 290 | writer := om.NewWriter(ctx, WriterOptions{}) |
| 291 | writer.Write(b[0:50]) |
| 292 | writer.Write(b[0:50]) |
| 293 | result, err := writer.Result() |
| 294 | |
| 295 | if !objectIDsEqual(result, mustParseID(t, "cd00e292c5970d3c5e2f0ffa5171e555bc46bfc4faddfb4a418b6840b86e79a3")) { |
| 296 | t.Errorf("unexpected result: %v err: %v", result, err) |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | func TestCheckpointing(t *testing.T) { |
| 301 | ctx := testlogging.Context(t) |
nothing calls this directly
no test coverage detected