()
| 9 | ) |
| 10 | |
| 11 | func testRocksDbDatastore() (DataStore, error) { |
| 12 | //fmt.Sprintf("%s/%s", os.TempDir, "") |
| 13 | tmpDir, err := os.MkdirTemp("", "test_flydb_rocksDB") |
| 14 | if err != nil { |
| 15 | return nil, err |
| 16 | } |
| 17 | err = os.Remove(tmpDir) |
| 18 | if err != nil { |
| 19 | return nil, err |
| 20 | } |
| 21 | |
| 22 | // Successfully creates and returns a store |
| 23 | |
| 24 | return NewLogRocksDbStorage(config.Config{LogDataStoragePath: tmpDir}) |
| 25 | } |
| 26 | |
| 27 | func TestRocksDbStore_DeleteRange(t *testing.T) { |
| 28 | r, err := testRocksDbDatastore() |
no test coverage detected