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

Function test_sequential_container_front_back

tests/test_container_helpers.h:621–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619// a COMPILER ERROR (not silent skipping).
620template<typename Container>
621void test_sequential_container_front_back() {
622 Container c;
623 populate(c, make_shared_int(1));
624 populate(c, make_shared_int(2));
625 populate(c, make_shared_int(3));
626
627 // Test front and back - COMPILER ERROR if these methods don't exist
628 FL_CHECK(*c.front() == 1);
629 FL_CHECK(*c.back() == 3);
630}
631
632// Test resize for sequential containers
633// NOTE: No enable_if - if a container doesn't have resize, you get

Callers

nothing calls this directly

Calls 4

populateFunction · 0.85
make_shared_intFunction · 0.85
frontMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected