| 26 | class IndexFixture { |
| 27 | public: |
| 28 | explicit IndexFixture(const std::string& name, size_t dim = DIM, bool fresh = true) |
| 29 | : dir_(std::string(g_index_path) + "/" + name), dim_(dim), idx_(nullptr), cleanup_(fresh) { |
| 30 | if (fresh) { |
| 31 | cleanup(); |
| 32 | mkdir(dir_.c_str(), 0755); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | ~IndexFixture() { |
| 37 | if (idx_) cactus_index_destroy(idx_); |
nothing calls this directly
no outgoing calls
no test coverage detected