MCPcopy Create free account
hub / github.com/cactus-compute/cactus / IndexFixture

Method IndexFixture

tests/test_index.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26class IndexFixture {
27public:
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_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected