|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Ah Arena. More...
#include <cstdlib>#include <gsl/gsl_rng.h>#include <gtest/gtest.h>#include <ah-arena.H>#include <tpl_dynSetTree.H>Go to the source code of this file.
Classes | |
| struct | StaticArenaFixture |
| struct | Foo |
Functions | |
| TEST_F (StaticArenaFixture, simple_fail) | |
| TEST_F (StaticArenaFixture, free_under_lifo_order) | |
| TEST_F (StaticArenaFixture, one_alloc_next_fail) | |
| static unsigned long | get_seed () |
| TEST_F (StaticArenaFixture, random_allocs) | |
| TEST_F (StaticArenaFixture, object_alloc) | |
| TEST (Tree, tree) | |
| int | main (int argc, char **argv) |
Tests for Ah Arena.
Definition in file ah-arena.cc.
|
static |
Definition at line 90 of file ah-arena.cc.
References Aleph::maps().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 202 of file ah-arena.cc.
References Aleph::maps().
| TEST | ( | Tree | , |
| tree | |||
| ) |
Definition at line 169 of file ah-arena.cc.
References Aleph::DynSetTree< Key, Tree, Compare >::arena_allocated_size(), Aleph::DynSetTree< Key, Tree, Compare >::arena_available_size(), get_seed(), Aleph::DynSetTree< Key, Tree, Compare >::insert(), Aleph::maps(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST_F | ( | StaticArenaFixture | , |
| free_under_lifo_order | |||
| ) |
Definition at line 66 of file ah-arena.cc.
References Aleph::maps().
| TEST_F | ( | StaticArenaFixture | , |
| object_alloc | |||
| ) |
Definition at line 144 of file ah-arena.cc.
References Aleph::DynList< T >::append(), FunctionalMethods< Container, T >::for_each(), Foo::i, Aleph::maps(), Aleph::DynList< T >::reverse(), and Aleph::HTList::size().
| TEST_F | ( | StaticArenaFixture | , |
| one_alloc_next_fail | |||
| ) |
Definition at line 75 of file ah-arena.cc.
References Aleph::maps().
| TEST_F | ( | StaticArenaFixture | , |
| random_allocs | |||
| ) |
Definition at line 96 of file ah-arena.cc.
References get_seed(), Aleph::maps(), and Aleph::size().
| TEST_F | ( | StaticArenaFixture | , |
| simple_fail | |||
| ) |
Definition at line 59 of file ah-arena.cc.
References Aleph::AhArenaAllocator::alloc(), and Aleph::maps().