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

Function test_emplace_front

tests/misc/containers.cpp:409–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407
408template<template<typename> class ContainerTemplate>
409void test_emplace_front() {
410 using Container = ContainerTemplate<TestItem>;
411 Container container;
412 container.emplace_front(88);
413
414 FL_CHECK(container.size() == 1);
415 FL_CHECK(container.front().value == 88);
416 FL_CHECK(container.front().copy_count == 0);
417}
418
419template<template<typename> class ContainerTemplate>
420void test_pop_front() {

Callers

nothing calls this directly

Calls 3

emplace_frontMethod · 0.45
sizeMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected