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

Function test_pop_front

tests/misc/containers.cpp:420–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418
419template<template<typename> class ContainerTemplate>
420void test_pop_front() {
421 using Container = ContainerTemplate<TestItem>;
422 Container container;
423 container.push_front(fl::move(TestItem(20)));
424 container.push_front(fl::move(TestItem(10)));
425 FL_CHECK(container.size() == 2);
426
427 container.pop_front();
428 FL_CHECK(container.size() == 1);
429 FL_CHECK(container.front().value == 20);
430}
431
432// Indexed access (vector, deque)
433template<template<typename> class ContainerTemplate>

Callers

nothing calls this directly

Calls 5

TestItemClass · 0.85
push_frontMethod · 0.45
sizeMethod · 0.45
pop_frontMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected