MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / test_setup

Method test_setup

tests/unit-tests/dds/DCPS/MemoryPool.cpp:1120–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118}
1119
1120void test_setup() {
1121 FreeIndex index(largest_free_);
1122 setup(index, 1024*5);
1123 EXPECT_TRUE(largest_free_->size() == 1024*5);
1124 EXPECT_TRUE(index.size_ == 10);
1125 EXPECT_TRUE(index.nodes_[9].ptr() == largest_free_);
1126}
1127
1128void test_index_lookup() {
1129 EXPECT_TRUE(FreeIndex::node_index(0) == 0);

Callers 1

TESTFunction · 0.80

Calls 3

setupFunction · 0.50
sizeMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected