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

Function test_insert_range

src/test/common/test_bitset_set.cc:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void test_insert_range(int start, int length)
89{
90 bitset_set<128, Key> bitset;
91 bitset_set<128, Key> bitset_ref;
92
93 bitset.insert_range(start, length);
94 for (int i = start; i < length + start; ++i) {
95 bitset_ref.insert(i);
96 }
97 ASSERT_EQ(bitset_ref, bitset) << "start=" << start << " length=" << length;
98}
99
100TEST(bitset_set, insert_range) {
101 for (int i=0; i < 128; i++) {

Callers 1

TESTFunction · 0.85

Calls 2

insert_rangeMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected