|
@ -68,7 +68,7 @@ func TestReaderAt(t *testing.T) { |
|
|
readerAt := &ChunkReadAt{ |
|
|
readerAt := &ChunkReadAt{ |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
fileSize: 10, |
|
|
fileSize: 10, |
|
|
readerCache: newReaderCache(3, &mockChunkCache{}, nil), |
|
|
|
|
|
|
|
|
readerCache: NewReaderCache(3, &mockChunkCache{}, nil), |
|
|
readerPattern: NewReaderPattern(), |
|
|
readerPattern: NewReaderPattern(), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -115,7 +115,7 @@ func TestReaderAt0(t *testing.T) { |
|
|
readerAt := &ChunkReadAt{ |
|
|
readerAt := &ChunkReadAt{ |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
fileSize: 10, |
|
|
fileSize: 10, |
|
|
readerCache: newReaderCache(3, &mockChunkCache{}, nil), |
|
|
|
|
|
|
|
|
readerCache: NewReaderCache(3, &mockChunkCache{}, nil), |
|
|
readerPattern: NewReaderPattern(), |
|
|
readerPattern: NewReaderPattern(), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -141,7 +141,7 @@ func TestReaderAt1(t *testing.T) { |
|
|
readerAt := &ChunkReadAt{ |
|
|
readerAt := &ChunkReadAt{ |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
fileSize: 20, |
|
|
fileSize: 20, |
|
|
readerCache: newReaderCache(3, &mockChunkCache{}, nil), |
|
|
|
|
|
|
|
|
readerCache: NewReaderCache(3, &mockChunkCache{}, nil), |
|
|
readerPattern: NewReaderPattern(), |
|
|
readerPattern: NewReaderPattern(), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -174,7 +174,7 @@ func TestReaderAtGappedChunksDoNotLeak(t *testing.T) { |
|
|
readerAt := &ChunkReadAt{ |
|
|
readerAt := &ChunkReadAt{ |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
chunkViews: ViewFromVisibleIntervals(visibles, 0, math.MaxInt64), |
|
|
fileSize: 9, |
|
|
fileSize: 9, |
|
|
readerCache: newReaderCache(3, &mockChunkCache{}, nil), |
|
|
|
|
|
|
|
|
readerCache: NewReaderCache(3, &mockChunkCache{}, nil), |
|
|
readerPattern: NewReaderPattern(), |
|
|
readerPattern: NewReaderPattern(), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ func TestReaderAtSparseFileDoesNotLeak(t *testing.T) { |
|
|
readerAt := &ChunkReadAt{ |
|
|
readerAt := &ChunkReadAt{ |
|
|
chunkViews: ViewFromVisibleIntervals(NewIntervalList[*VisibleInterval](), 0, math.MaxInt64), |
|
|
chunkViews: ViewFromVisibleIntervals(NewIntervalList[*VisibleInterval](), 0, math.MaxInt64), |
|
|
fileSize: 3, |
|
|
fileSize: 3, |
|
|
readerCache: newReaderCache(3, &mockChunkCache{}, nil), |
|
|
|
|
|
|
|
|
readerCache: NewReaderCache(3, &mockChunkCache{}, nil), |
|
|
readerPattern: NewReaderPattern(), |
|
|
readerPattern: NewReaderPattern(), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|