mirror of
https://github.com/kopia/kopia.git
synced 2026-01-10 07:27:51 -05:00
* remove unnecessary type argument * modernize with max * unexport getPartial and update comment * unexport getFull * verifyNotCached helper * use require helpers * leverage verify[Not]Cached * use windowsOSName const * fix comment wrapping * require in stat_test * use 512 as the write size and log allocated size * rename const to expectedMinAllocSize * write a single byte to test file * add TestGetBlockSizeFromCurrentFS * require Positive * log before invariant check
13 lines
311 B
Go
13 lines
311 B
Go
package cache
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/internal/gather"
|
|
)
|
|
|
|
// TestingGetFull fetches the contents of a full blob. Returns false if not found.
|
|
func (c *PersistentCache) TestingGetFull(ctx context.Context, key string, output *gather.WriteBuffer) bool {
|
|
return c.getFull(ctx, key, output)
|
|
}
|