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

Tests for Ah Arena. More...

#include <cstdlib>
#include <gsl/gsl_rng.h>
#include <gtest/gtest.h>
#include <ah-arena.H>
#include <tpl_dynSetTree.H>
Include dependency graph for ah-arena.cc:

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)
 

Detailed Description

Tests for Ah Arena.

Definition in file ah-arena.cc.

Function Documentation

◆ get_seed()

static unsigned long get_seed ( )
static

Definition at line 90 of file ah-arena.cc.

References Aleph::maps().

Referenced by TEST(), and TEST_F().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 202 of file ah-arena.cc.

References Aleph::maps().

◆ TEST()

◆ TEST_F() [1/5]

TEST_F ( StaticArenaFixture  ,
free_under_lifo_order   
)

Definition at line 66 of file ah-arena.cc.

References Aleph::maps().

◆ TEST_F() [2/5]

◆ TEST_F() [3/5]

TEST_F ( StaticArenaFixture  ,
one_alloc_next_fail   
)

Definition at line 75 of file ah-arena.cc.

References Aleph::maps().

◆ TEST_F() [4/5]

TEST_F ( StaticArenaFixture  ,
random_allocs   
)

Definition at line 96 of file ah-arena.cc.

References get_seed(), Aleph::maps(), and Aleph::size().

◆ TEST_F() [5/5]

TEST_F ( StaticArenaFixture  ,
simple_fail   
)

Definition at line 59 of file ah-arena.cc.

References Aleph::AhArenaAllocator::alloc(), and Aleph::maps().