MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_pmr_remove_one

Function test_pmr_remove_one

tests/misc/containers.cpp:1619–1628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1617
1618template <typename Factory>
1619void test_pmr_remove_one() {
1620 tracking_memory_resource mr;
1621 typename Factory::container_type c = Factory::create(mr);
1622 for (int i = 0; i < kPmrInsertCount; ++i) {
1623 Factory::insert(c, i);
1624 }
1625 FL_CHECK(c.size() == static_cast<fl::size>(kPmrInsertCount));
1626 Factory::remove_one(c);
1627 FL_CHECK(c.size() == static_cast<fl::size>(kPmrInsertCount - 1));
1628}
1629
1630template <typename Factory>
1631void test_pmr_destructor_deallocates() {

Callers

nothing calls this directly

Calls 3

createFunction · 0.85
insertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected