Lines Matching refs:bba
24 ByteBucketArray<int> bba; in TEST() local
25 ASSERT_TRUE(bba.set(0, 1)); in TEST()
26 ASSERT_TRUE(bba.set(10, 2)); in TEST()
27 ASSERT_TRUE(bba.set(26, 3)); in TEST()
28 ASSERT_TRUE(bba.set(129, 4)); in TEST()
29 ASSERT_TRUE(bba.set(234, 5)); in TEST()
31 for (size_t i = 0; i < bba.size(); i++) { in TEST()
34 EXPECT_EQ(1, bba[i]); in TEST()
37 EXPECT_EQ(2, bba[i]); in TEST()
40 EXPECT_EQ(3, bba[i]); in TEST()
43 EXPECT_EQ(4, bba[i]); in TEST()
46 EXPECT_EQ(5, bba[i]); in TEST()
49 EXPECT_EQ(0, bba[i]); in TEST()
56 ByteBucketArray<int> bba; in TEST() local
57 ASSERT_TRUE(bba.set(0, 1)); in TEST()
58 ASSERT_TRUE(bba.set(10, 2)); in TEST()
59 ASSERT_TRUE(bba.set(26, 3)); in TEST()
60 ASSERT_TRUE(bba.set(129, 4)); in TEST()
61 ASSERT_TRUE(bba.set(234, 5)); in TEST()
64 bba.forEachItem([&count](auto i, auto val) { in TEST()
91 ByteBucketArray<int> bba; in TEST() local
92 ASSERT_TRUE(bba.set(0, 1)); in TEST()
93 ASSERT_TRUE(bba.set(255, 2)); in TEST()
95 bba.trimBuckets([](auto val) { return val < 2; }); in TEST()
97 bba.forEachItem([&count](auto, auto) { ++count; }); in TEST()
101 bba.trimBuckets([](auto val) { return val < 3; }); in TEST()
103 bba.forEachItem([&count](auto, auto) { ++count; }); in TEST()