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

Tests for Ah Mem. More...

#include <gtest/gtest.h>
#include <ahMem.H>
#include <cstring>
#include <stdexcept>
Include dependency graph for ah_mem_test.cc:

Go to the source code of this file.

Functions

 TEST (AhMemTest, AllocateReturnsValidBuffer)
 
 TEST (AhMemTest, AllocateRejectsZeroSize)
 
 TEST (AhMemTest, AllocateZeroedClearsMemory)
 
 TEST (AhMemTest, AllocateZeroedRejectsZeroSize)
 

Detailed Description

Tests for Ah Mem.

Definition in file ah_mem_test.cc.

Function Documentation

◆ TEST() [1/4]

TEST ( AhMemTest  ,
AllocateRejectsZeroSize   
)

Definition at line 60 of file ah_mem_test.cc.

References Aleph::allocate().

◆ TEST() [2/4]

TEST ( AhMemTest  ,
AllocateReturnsValidBuffer   
)

Definition at line 52 of file ah_mem_test.cc.

References Aleph::allocate(), and Aleph::deallocate().

◆ TEST() [3/4]

TEST ( AhMemTest  ,
AllocateZeroedClearsMemory   
)

Definition at line 65 of file ah_mem_test.cc.

References Aleph::allocate_zeroed(), and Aleph::deallocate().

◆ TEST() [4/4]

TEST ( AhMemTest  ,
AllocateZeroedRejectsZeroSize   
)

Definition at line 76 of file ah_mem_test.cc.

References Aleph::allocate_zeroed().