(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestMultiStreamer(t *testing.T) { |
| 70 | var streamers []blobserver.BlobStreamer |
| 71 | var want []blob.SizedRef |
| 72 | n := 0 |
| 73 | |
| 74 | for st := 0; st < 3; st++ { |
| 75 | var blobs []*blob.Blob |
| 76 | for i := 0; i < 3; i++ { |
| 77 | n++ |
| 78 | tb := &test.Blob{Contents: strconv.Itoa(n)} |
| 79 | b := tb.Blob() |
| 80 | want = append(want, b.SizedRef()) // overall |
| 81 | blobs = append(blobs, b) // this sub-streamer |
| 82 | } |
| 83 | streamers = append(streamers, staticStreamer(blobs)) |
| 84 | } |
| 85 | storagetest.TestStreamer(t, blobserver.NewMultiBlobStreamer(streamers...), storagetest.WantSizedRefs(want)) |
| 86 | } |
nothing calls this directly
no test coverage detected