MCPcopy Create free account
hub / github.com/ceph/ceph / TEST

Function TEST

src/test/common/test_bitset_set.cc:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38TEST(bitset_set, constructors) {
39 bitset_set<128, Key> bs;
40 ASSERT_TRUE(bs.empty());
41 bs.insert(2);
42 bs.insert(4);
43 bitset_set<128, Key> bs2(bs);
44 ASSERT_EQ(bs, bs2);
45 int array[] = {2, 4};
46 bitset_set<128, Key> bs3(array, array + 2);
47 ASSERT_EQ(bs, bs3);
48 bitset_set<128, Key> bs4{2, 4};
49 ASSERT_EQ(bs, bs4);
50}
51
52TEST(bitset_set, insert_emplace) {
53 bitset_set<128, Key> bitset;

Callers

nothing calls this directly

Calls 15

test_insert_rangeFunction · 0.85
test_erase_rangeFunction · 0.85
insert_rangeMethod · 0.80
find_nthMethod · 0.80
KeyClass · 0.70
formatFunction · 0.50
emptyMethod · 0.45
insertMethod · 0.45
emplaceMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected