|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for InlineStack: a stack of fixed capacity whose items live in the object, so it never allocates. More...
#include <gtest/gtest.h>#include <tpl_arrayStack.H>#include <cstddef>#include <type_traits>#include <utility>Go to the source code of this file.
Functions | |
| TEST (InlineStack, never_allocates_and_cannot_throw) | |
| TEST (InlineStack, push_pop_top_and_size) | |
| TEST (InlineStack, popn_returns_the_last_popped_item) | |
| TEST (InlineStack, fills_up_to_its_capacity) | |
| TEST (InlineStack, copies_only_the_items_in_use) | |
| TEST (InlineStack, swap_exchanges_the_items) | |
Tests for InlineStack: a stack of fixed capacity whose items live in the object, so it never allocates.
Definition in file inlinestack_test.cc.
| TEST | ( | InlineStack | , |
| copies_only_the_items_in_use | |||
| ) |
Definition at line 120 of file inlinestack_test.cc.
References Aleph::InlineStack< T, N >::pop(), Aleph::InlineStack< T, N >::push(), Aleph::InlineStack< T, N >::size(), and Aleph::InlineStack< T, N >::top().
| TEST | ( | InlineStack | , |
| fills_up_to_its_capacity | |||
| ) |
Definition at line 104 of file inlinestack_test.cc.
References Aleph::InlineStack< T, N >::capacity(), Aleph::InlineStack< T, N >::clear(), Aleph::InlineStack< T, N >::empty(), Aleph::InlineStack< T, N >::is_empty(), Aleph::InlineStack< T, N >::push(), Aleph::InlineStack< T, N >::size(), and Aleph::InlineStack< T, N >::top().
| TEST | ( | InlineStack | , |
| never_allocates_and_cannot_throw | |||
| ) |
Definition at line 48 of file inlinestack_test.cc.
| TEST | ( | InlineStack | , |
| popn_returns_the_last_popped_item | |||
| ) |
Definition at line 92 of file inlinestack_test.cc.
References Aleph::InlineStack< T, N >::is_empty(), Aleph::InlineStack< T, N >::popn(), Aleph::InlineStack< T, N >::push(), Aleph::InlineStack< T, N >::size(), and Aleph::InlineStack< T, N >::top().
| TEST | ( | InlineStack | , |
| push_pop_top_and_size | |||
| ) |
| TEST | ( | InlineStack | , |
| swap_exchanges_the_items | |||
| ) |