From 480d20ead6d2c987e7ee2a01acf36a0341fdd3d5 Mon Sep 17 00:00:00 2001 From: Mickael Ide Date: Mon, 18 Sep 2023 22:21:47 +0200 Subject: [PATCH] Fix naming --- cpp/test/util/bitset.cu | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cpp/test/util/bitset.cu b/cpp/test/util/bitset.cu index f71fb48936..10f82a480c 100644 --- a/cpp/test/util/bitset.cu +++ b/cpp/test/util/bitset.cu @@ -27,13 +27,13 @@ namespace raft::util { -struct test_spec { +struct test_spec_bitset { uint64_t bitset_len; uint64_t mask_len; uint64_t query_len; }; -auto operator<<(std::ostream& os, const test_spec& ss) -> std::ostream& +auto operator<<(std::ostream& os, const test_spec_bitset& ss) -> std::ostream& { os << "bitset{bitset_len: " << ss.bitset_len << ", mask_len: " << ss.mask_len << ", query_len: " << ss.query_len << "}"; @@ -80,17 +80,17 @@ void flip_cpu_bitset(std::vector& bitset) } template -class BitsetTest : public testing::TestWithParam { +class BitsetTest : public testing::TestWithParam { protected: index_t static constexpr const bitset_element_size = sizeof(bitset_t) * 8; - const test_spec spec; + const test_spec_bitset spec; std::vector bitset_result; std::vector bitset_ref; raft::resources res; public: explicit BitsetTest() - : spec(testing::TestWithParam::GetParam()), + : spec(testing::TestWithParam::GetParam()), bitset_result(raft::ceildiv(spec.bitset_len, uint64_t(bitset_element_size))), bitset_ref(raft::ceildiv(spec.bitset_len, uint64_t(bitset_element_size))) { @@ -155,13 +155,13 @@ class BitsetTest : public testing::TestWithParam { } }; -auto inputs = ::testing::Values(test_spec{32, 5, 10}, - test_spec{100, 30, 10}, - test_spec{1024, 55, 100}, - test_spec{10000, 1000, 1000}, - test_spec{1 << 15, 1 << 3, 1 << 12}, - test_spec{1 << 15, 1 << 24, 1 << 13}, - test_spec{1 << 25, 1 << 23, 1 << 14}); +auto inputs = ::testing::Values(test_spec_bitset{32, 5, 10}, + test_spec_bitset{100, 30, 10}, + test_spec_bitset{1024, 55, 100}, + test_spec_bitset{10000, 1000, 1000}, + test_spec_bitset{1 << 15, 1 << 3, 1 << 12}, + test_spec_bitset{1 << 15, 1 << 24, 1 << 13}, + test_spec_bitset{1 << 25, 1 << 23, 1 << 14}); using Uint16_32 = BitsetTest; TEST_P(Uint16_32, Run) { run(); }