util/IntrusiveTreeSet: add debug method Check()
Only for the unit test.
This commit is contained in:

committed by
Max Kellermann

parent
669cbcd25a
commit
e0a53d4747
@@ -182,6 +182,10 @@ TEST(IntrusiveTreeSet, RandomOrder)
|
||||
set.pop_front();
|
||||
EXPECT_FALSE(items[remove].is_linked());
|
||||
|
||||
#ifndef NDEBUG
|
||||
set.Check();
|
||||
#endif
|
||||
|
||||
expected = remove + 1;
|
||||
for (const auto &i : set) {
|
||||
EXPECT_EQ(i.value, expected++);
|
||||
|
Reference in New Issue
Block a user