MCPcopy
hub / github.com/perkeep/perkeep / TestProxyCache

Function TestProxyCache

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

Source from the content-addressed store, hash-verified

116}
117
118func TestProxyCache(t *testing.T) {
119 px, ds := NewProxiedDisk(t)
120 storagetest.Test(t, func(t *testing.T) blobserver.Storage {
121 return px
122 })
123 px.origin = memory.NewCache(0)
124 storagetest.Test(t, func(t *testing.T) blobserver.Storage {
125 t.Cleanup(func() { cleanUp(ds) })
126 return px
127 })
128}
129
130func TestConfig(t *testing.T) {
131 const maxBytes = 1 << 5

Callers

nothing calls this directly

Calls 4

TestFunction · 0.92
NewCacheFunction · 0.92
NewProxiedDiskFunction · 0.85
cleanUpFunction · 0.70

Tested by

no test coverage detected