Skip to content
Snippets Groups Projects
Commit 5e6ba58f authored by Wlad's avatar Wlad
Browse files

wip: initial test setup

parent 3e37e740
No related branches found
No related tags found
No related merge requests found
Pipeline #96874 failed
#include "lookup_test.hpp"
#include <gtest/gtest.h>
namespace test::lookup_test {
INSTANTIATE_TYPED_TEST_CASE_P(LookupBloomNaive64TestTypes, FilterTest, LookupBloomNaive64TestTypes);
}
MAIN();
// int main(int argc, char** argv) {
// using Filter = filters::Filter<filters::FilterType::LookupBloom,
// filters::lookupBloom::LookupNaive64<144>,
// 144,
// filters::parameter::PowerOfTwoMurmurScalar64>;
// auto filter = std::make_unique<Filter>(144, 1, 1, 1);
// filter->add(1);
// filter->add(2);
// filter->add(3);
// filter->add(4);
// filter->add(5);
// filter->add(115);
// std::cout << filter->contains(1) << std::endl;
// std::cout << filter->contains(1000) << std::endl;
// }
\ No newline at end of file
#pragma once
#include <cstddef>
#include <lookup/lookup_parameter.hpp>
#include "../filter_test.hpp"
namespace test::lookup_test {
namespace lookup = filters::lookupBloom;
namespace parameter = filters::parameter;
static constexpr size_t s = 144;
static constexpr size_t n_s = 1000, n_l = 1000000;
static constexpr size_t k_s = 8, k_l = 16;
static constexpr size_t n_partitions_s = 2, n_partitition_l = 16;
static constexpr filters::FilterType TestFilterType = filters::FilterType::LookupBloom;
template <template <size_t> typename FP, int64_t expected_fp>
using LookupBloomScalarSmall = FilterTestConfig<TestFilterType,
FP,
k_l,
parameter::LookupScalar16,
n_s,
s,
0,
2,
2,
expected_fp>;
using LookupBloomNaive64TestTypes =
::testing::Types<LookupBloomScalarSmall<lookup::LookupNaive64, 0>>;
} // namespace test::lookup_test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment