(dir string)
| 69 | func (s *DB) validate() error { return s.lc.validate() } |
| 70 | |
| 71 | func getTestOptions(dir string) Options { |
| 72 | opt := DefaultOptions(dir). |
| 73 | WithMaxTableSize(1 << 15). // Force more compaction. |
| 74 | WithLevelOneSize(4 << 15). // Force more compaction. |
| 75 | WithSyncWrites(false). |
| 76 | WithMaxCacheSize(10 << 20) |
| 77 | if !*mmap { |
| 78 | return opt.WithValueLogLoadingMode(options.FileIO) |
| 79 | } |
| 80 | return opt |
| 81 | } |
| 82 | |
| 83 | func getItemValue(t *testing.T, item *Item) (val []byte) { |
| 84 | t.Helper() |
no test coverage detected
searching dependent graphs…