MCPcopy
hub / github.com/rclone/rclone / itemAsString

Function itemAsString

vfs/vfscache/cache_test.go:29–38  ·  view source on GitHub ↗

convert c.item to a string

(c *Cache)

Source from the content-addressed store, hash-verified

27
28// convert c.item to a string
29func itemAsString(c *Cache) []string {
30 c.mu.Lock()
31 defer c.mu.Unlock()
32 var out []string
33 for name, item := range c.item {
34 out = append(out, fmt.Sprintf("name=%q opens=%d size=%d", filepath.ToSlash(name), item.opens, item.info.Size))
35 }
36 sort.Strings(out)
37 return out
38}
39
40// convert c.item to a string
41func itemSpaceAsString(c *Cache) []string {

Callers 6

TestCacheNewFunction · 0.85
TestCacheOpensFunction · 0.85
TestCacheOpenMkdirFunction · 0.85
TestCachePurgeOldFunction · 0.85
TestCachePurgeOverQuotaFunction · 0.85
TestCachePurgeCleanFunction · 0.85

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…