(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func 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 | |
| 122 | func TestCacheNew(t *testing.T) { |
| 123 | r, c := newTestCache(t) |
no test coverage detected
searching dependent graphs…