MCPcopy Index your code
hub / github.com/kopia/kopia / setEntryCount

Method setEntryCount

fs/cachefs/cache_test.go:45–56  ·  view source on GitHub ↗
(id string, cnt int)

Source from the content-addressed store, hash-verified

43}
44
45func (cs *cacheSource) setEntryCount(id string, cnt int) {
46 var fakeEntries []fs.Entry
47
48 var fakeEntry fs.Entry
49
50 for range cnt {
51 fakeEntries = append(fakeEntries, fakeEntry)
52 }
53
54 cs.data[id] = fakeEntries
55 cs.callCounter[id] = 0
56}
57
58func newCacheSource() *cacheSource {
59 return &cacheSource{

Callers 2

TestCacheFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected