Files
kopia/internal/cache/export_test.go
Julio Lopez 735adfcf85 refactor(general): small misc. cleanups (#4666)
* 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
2025-06-13 23:56:37 -07:00

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)
}