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

Function test_pop_back

tests/misc/containers.cpp:351–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350template<template<typename> class ContainerTemplate>
351void test_pop_back() {
352 using Container = ContainerTemplate<TestItem>;
353 Container container;
354 container.push_back(fl::move(TestItem(10)));
355 container.push_back(fl::move(TestItem(20)));
356 FL_CHECK(container.size() == 2);
357
358 container.pop_back();
359 FL_CHECK(container.size() == 1);
360 FL_CHECK(container.back().value == 10);
361}
362
363template<template<typename> class ContainerTemplate>
364void test_size_and_empty() {

Callers

nothing calls this directly

Calls 5

TestItemClass · 0.85
push_backMethod · 0.45
sizeMethod · 0.45
pop_backMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected