lint:ignore U1000 used for testing
()
| 64 | |
| 65 | //lint:ignore U1000 used for testing |
| 66 | func (s *FileStore) dump() string { |
| 67 | s.Lock.Lock() |
| 68 | defer s.Lock.Unlock() |
| 69 | var buf bytes.Buffer |
| 70 | buf.WriteString(fmt.Sprintf("FileStore %d entries\n", len(s.Cache))) |
| 71 | for _, v := range s.Cache { |
| 72 | entryStr := v.dump() |
| 73 | buf.WriteString(entryStr) |
| 74 | buf.WriteString("\n") |
| 75 | } |
| 76 | return buf.String() |
| 77 | } |
| 78 | |
| 79 | func TestCreate(t *testing.T) { |
| 80 | initDb(t) |
nothing calls this directly
no test coverage detected