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

Function test_sequential_container_resize

tests/test_container_helpers.h:636–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634// a COMPILER ERROR (not silent skipping).
635template<typename Container>
636void test_sequential_container_resize() {
637 Container c;
638 populate(c, make_shared_int(1));
639 populate(c, make_shared_int(2));
640
641 // Resize up - COMPILER ERROR if resize() doesn't exist
642 c.resize(4);
643 FL_CHECK(c.size() == 4);
644
645 // Resize down
646 c.resize(2);
647 FL_CHECK(c.size() == 2);
648}
649
650// ============================================================================
651// TIER 3 Tests: Capacity Management

Callers

nothing calls this directly

Calls 4

populateFunction · 0.85
make_shared_intFunction · 0.85
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected