MCPcopy
hub / github.com/rclone/rclone / newTestCache

Function newTestCache

vfs/vfscache/cache_test.go:107–120  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func newTestCache(t *testing.T) (r *fstest.Run, c *Cache) {
108 opt := vfscommon.Opt
109
110 // Disable the cache cleaner as it interferes with these tests
111 opt.CachePollInterval = 0
112
113 // Disable synchronous write
114 opt.WriteBack = 0
115
116 // Disable handle caching so existing tests get immediate close behavior
117 opt.HandleCaching = 0
118
119 return newTestCacheOpt(t, opt)
120}
121
122func TestCacheNew(t *testing.T) {
123 r, c := newTestCache(t)

Callers 15

TestCacheNewFunction · 0.85
TestCacheOpensFunction · 0.85
TestCacheOpenMkdirFunction · 0.85
TestCachePurgeOldFunction · 0.85
TestCachePurgeOverQuotaFunction · 0.85
TestCacheInUseFunction · 0.85
TestCacheDirtyItemFunction · 0.85
TestCacheExistsAndRemoveFunction · 0.85
TestCacheRenameFunction · 0.85
TestCacheSetModTimeFunction · 0.85
TestCacheTotaInUseFunction · 0.85

Calls 1

newTestCacheOptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…