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

Function test_container_reverse_iteration_contract

tests/misc/containers.cpp:785–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783
784template<typename Container>
785void test_container_reverse_iteration_contract() {
786 Container c;
787 c.push_back(10);
788 c.push_back(20);
789 c.push_back(30);
790
791 // Test rbegin() and rend()
792 FL_CHECK(c.rbegin() != c.rend());
793
794 // Test reverse iterator dereference (should point to last element)
795 FL_CHECK(*c.rbegin() == 30);
796}
797
798template<typename Container>
799void test_container_const_iterator_contract() {

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45

Tested by

no test coverage detected