(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func cleanupDb(t *testing.T) { |
| 37 | t.Logf("cleaning up db for %q", t.Name()) |
| 38 | if globalDB != nil { |
| 39 | globalDB.Close() |
| 40 | globalDB = nil |
| 41 | } |
| 42 | useTestingDb = false |
| 43 | partDataSize = DefaultPartDataSize |
| 44 | WFS.clearCache() |
| 45 | if warningCount.Load() > 0 { |
| 46 | t.Errorf("warning count: %d", warningCount.Load()) |
| 47 | } |
| 48 | if flushErrorCount.Load() > 0 { |
| 49 | t.Errorf("flush error count: %d", flushErrorCount.Load()) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func (s *FileStore) getCacheSize() int { |
| 54 | s.Lock.Lock() |
no test coverage detected