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

Function test_emplace_back

tests/misc/containers.cpp:340–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338
339template<template<typename> class ContainerTemplate>
340void test_emplace_back() {
341 using Container = ContainerTemplate<TestItem>;
342 Container container;
343 container.emplace_back(99);
344
345 FL_CHECK(container.size() == 1);
346 FL_CHECK(container.back().value == 99);
347 FL_CHECK(container.back().copy_count == 0);
348}
349
350template<template<typename> class ContainerTemplate>
351void test_pop_back() {

Callers

nothing calls this directly

Calls 3

emplace_backMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected