MCPcopy Index your code
hub / github.com/perkeep/perkeep / TestStreamMultiplePacks

Function TestStreamMultiplePacks

pkg/blobserver/diskpacked/stream_test.go:195–199  ·  view source on GitHub ↗

Tests that we can correctly switch over to the next pack if we still need to stream more blobs when a pack reaches EOF.

(t *testing.T)

Source from the content-addressed store, hash-verified

193// Tests that we can correctly switch over to the next pack if we
194// still need to stream more blobs when a pack reaches EOF.
195func TestStreamMultiplePacks(t *testing.T) {
196 s, clean := newTestStorage(t, pack{testPack1}, pack{testPack2})
197 defer clean()
198 storagetest.TestStreamer(t, s, storagetest.WantN(len(testPack1)+len(testPack2)))
199}
200
201func TestStreamSkipRemovedBlobs(t *testing.T) {
202 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

TestStreamerFunction · 0.92
WantNTypeAlias · 0.92
newTestStorageFunction · 0.70

Tested by

no test coverage detected