Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
inlinestack_test.cc File Reference

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>
Include dependency graph for inlinestack_test.cc:

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)
 

Detailed Description

Tests for InlineStack: a stack of fixed capacity whose items live in the object, so it never allocates.

Definition in file inlinestack_test.cc.

Function Documentation

◆ TEST() [1/6]

◆ TEST() [2/6]

◆ TEST() [3/6]

TEST ( InlineStack  ,
never_allocates_and_cannot_throw   
)

Definition at line 48 of file inlinestack_test.cc.

◆ TEST() [4/6]

◆ TEST() [5/6]

◆ TEST() [6/6]