|
|
|
@ -504,7 +504,7 @@ TEST_P(DBBloomFilterTestWithParam, BloomFilter) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef ROCKSDB_VALGRIND_RUN |
|
|
|
|
INSTANTIATE_TEST_CASE_P( |
|
|
|
|
INSTANTIATE_TEST_SUITE_P( |
|
|
|
|
FormatDef, DBBloomFilterTestDefFormatVersion, |
|
|
|
|
::testing::Values( |
|
|
|
|
std::make_tuple(BFP::kDeprecatedBlock, false, |
|
|
|
@ -512,7 +512,7 @@ INSTANTIATE_TEST_CASE_P( |
|
|
|
|
std::make_tuple(BFP::kAuto, true, test::kDefaultFormatVersion), |
|
|
|
|
std::make_tuple(BFP::kAuto, false, test::kDefaultFormatVersion))); |
|
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P( |
|
|
|
|
INSTANTIATE_TEST_SUITE_P( |
|
|
|
|
FormatDef, DBBloomFilterTestWithParam, |
|
|
|
|
::testing::Values( |
|
|
|
|
std::make_tuple(BFP::kDeprecatedBlock, false, |
|
|
|
@ -520,7 +520,7 @@ INSTANTIATE_TEST_CASE_P( |
|
|
|
|
std::make_tuple(BFP::kAuto, true, test::kDefaultFormatVersion), |
|
|
|
|
std::make_tuple(BFP::kAuto, false, test::kDefaultFormatVersion))); |
|
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P( |
|
|
|
|
INSTANTIATE_TEST_SUITE_P( |
|
|
|
|
FormatLatest, DBBloomFilterTestWithParam, |
|
|
|
|
::testing::Values( |
|
|
|
|
std::make_tuple(BFP::kDeprecatedBlock, false, |
|
|
|
@ -1217,18 +1217,15 @@ TEST_P(DBBloomFilterTestVaryPrefixAndFormatVer, PartitionedMultiGet) { |
|
|
|
|
EXPECT_TRUE(found_spanning >= 2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P(DBBloomFilterTestVaryPrefixAndFormatVer, |
|
|
|
|
INSTANTIATE_TEST_SUITE_P( |
|
|
|
|
DBBloomFilterTestVaryPrefixAndFormatVer, |
|
|
|
|
DBBloomFilterTestVaryPrefixAndFormatVer, |
|
|
|
|
::testing::Values( |
|
|
|
|
// (use_prefix, format_version)
|
|
|
|
|
std::make_tuple(false, 2), |
|
|
|
|
std::make_tuple(false, 3), |
|
|
|
|
std::make_tuple(false, 4), |
|
|
|
|
std::make_tuple(false, 5), |
|
|
|
|
std::make_tuple(true, 2), |
|
|
|
|
std::make_tuple(true, 3), |
|
|
|
|
std::make_tuple(true, 4), |
|
|
|
|
std::make_tuple(true, 5))); |
|
|
|
|
std::make_tuple(false, 2), std::make_tuple(false, 3), |
|
|
|
|
std::make_tuple(false, 4), std::make_tuple(false, 5), |
|
|
|
|
std::make_tuple(true, 2), std::make_tuple(true, 3), |
|
|
|
|
std::make_tuple(true, 4), std::make_tuple(true, 5))); |
|
|
|
|
|
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
|
namespace { |
|
|
|
@ -1398,7 +1395,7 @@ TEST_P(BloomStatsTestWithParam, BloomStatsTestWithIter) { |
|
|
|
|
ASSERT_EQ(expected_hits, get_perf_context()->bloom_sst_hit_count); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P( |
|
|
|
|
INSTANTIATE_TEST_SUITE_P( |
|
|
|
|
BloomStatsTestWithParam, BloomStatsTestWithParam, |
|
|
|
|
::testing::Values(std::make_tuple(BFP::kDeprecatedBlock, false), |
|
|
|
|
std::make_tuple(BFP::kLegacyBloom, false), |
|
|
|
|