|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Ah Arena. More...
#include <cstdlib>#include <gtest/gtest.h>#include <ah-arena.H>#include <ah-random.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.
Referenced by TEST_F().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 194 of file ah-arena.cc.
| TEST | ( | Tree | , |
| tree | |||
| ) |
| TEST_F | ( | StaticArenaFixture | , |
| free_under_lifo_order | |||
| ) |
Definition at line 66 of file ah-arena.cc.
| TEST_F | ( | StaticArenaFixture | , |
| object_alloc | |||
| ) |
Definition at line 141 of file ah-arena.cc.
References Aleph::DynList< T >::append(), FunctionalMethods< Container, T >::for_each(), Foo::i, Aleph::DynList< T >::reverse(), and Aleph::DynList< T >::size().
| TEST_F | ( | StaticArenaFixture | , |
| one_alloc_next_fail | |||
| ) |
Definition at line 75 of file ah-arena.cc.
| TEST_F | ( | StaticArenaFixture | , |
| random_allocs | |||
| ) |
Definition at line 96 of file ah-arena.cc.
References get_seed(), r, Aleph::size(), and Aleph::Gsl_Compatible_Rng::uniform_int().
| TEST_F | ( | StaticArenaFixture | , |
| simple_fail | |||
| ) |
Definition at line 59 of file ah-arena.cc.
References Aleph::AhArenaAllocator::alloc().