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

Function NewProxiedDisk

pkg/blobserver/proxycache/proxycache_test.go:69–72  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

67const cacheSize = 1 << 20
68
69func NewProxiedDisk(t *testing.T) (*Storage, *localdisk.DiskStorage) {
70 ds := NewDiskStorage(t)
71 return New(cacheSize, memory.NewCache(cacheSize), ds), ds
72}
73
74func TestEviction(t *testing.T) {
75 const blobsize = cacheSize / 6

Callers 4

TestEvictionFunction · 0.85
TestProxyCacheFunction · 0.85
TestConfigFunction · 0.85

Calls 3

NewCacheFunction · 0.92
NewDiskStorageFunction · 0.85
NewFunction · 0.70

Tested by

no test coverage detected