| 392 | // Front operations (deque, list) |
| 393 | template<template<typename> class ContainerTemplate> |
| 394 | void test_push_front() { |
| 395 | using Container = ContainerTemplate<TestItem>; |
| 396 | Container container; |
| 397 | TestItem item(42); |
| 398 | int initial_move_count = item.move_count; |
| 399 | |
| 400 | container.push_front(fl::move(item)); |
| 401 | |
| 402 | FL_CHECK(container.size() == 1); |
| 403 | FL_CHECK(container.front().value == 42); |
| 404 | FL_CHECK(item.move_count > initial_move_count); |
| 405 | FL_CHECK(container.front().copy_count == 0); |
| 406 | } |
| 407 | |
| 408 | template<template<typename> class ContainerTemplate> |
| 409 | void test_emplace_front() { |
nothing calls this directly
no test coverage detected