Skip to content

Commit

Permalink
add build test for Imprints
Browse files Browse the repository at this point in the history
  • Loading branch information
altramarine committed Nov 4, 2024
1 parent 7585929 commit ac02be5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_imprints/imprint_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

class ImprintsTest : public BlissIndexTest {};

TEST_F(ImprintsTest, TestImprint_Build) {
index.reset(new bliss::BlissImprintsIndex<size_t, key_type>(64, 64, std::string("unsigned long")));
std::vector<key_type> data;
GenerateData(data, num_keys, false);
std::vector < std::pair<size_t, key_type> > bulkload_data;
for (size_t i = 0; i < data.size(); i ++) {
bulkload_data.push_back(std::make_pair(i, data[i]));
}
index->bulkload(bulkload_data);
// auto insert_start = data.begin();
// auto insert_end = data.end();
// executor::execute_inserts(*index, insert_start, insert_end);
}

TEST_F(ImprintsTest, TestImprint_Random) {
index.reset(new bliss::BlissImprintsIndex<size_t, key_type>(64, 64, std::string("unsigned long")));
std::vector<key_type> data;
Expand Down

0 comments on commit ac02be5

Please sign in to comment.