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

Tests for Ah Mapping. More...

#include <gtest/gtest.h>
#include <cstring>
#include <string>
#include <vector>
#include <filesystem>
#include <ah-map-arena.H>
Include dependency graph for ah-mapping_test.cc:

Go to the source code of this file.

Classes

class  MapArenaTest
 

Functions

 TEST_F (MapArenaTest, DefaultConstruction)
 
 TEST_F (MapArenaTest, ConstructWithFile)
 
 TEST_F (MapArenaTest, InitMethod)
 
 TEST_F (MapArenaTest, InitAndErase)
 
 TEST_F (MapArenaTest, MoveConstruction)
 
 TEST_F (MapArenaTest, MoveAssignment)
 
 TEST_F (MapArenaTest, MoveAssignmentRoundtrip)
 
 TEST_F (MapArenaTest, BasicReserveCommit)
 
 TEST_F (MapArenaTest, MultipleReserveCommit)
 
 TEST_F (MapArenaTest, PartialCommit)
 
 TEST_F (MapArenaTest, ReserveWithData)
 
 TEST_F (MapArenaTest, ReserveTriggersRemap)
 
 TEST_F (MapArenaTest, LargeReservation)
 
 TEST_F (MapArenaTest, IteratorOnEmpty)
 
 TEST_F (MapArenaTest, IteratorTraversal)
 
 TEST_F (MapArenaTest, ConstIterators)
 
 TEST_F (MapArenaTest, RangeBasedFor)
 
 TEST_F (MapArenaTest, InitialCapacity)
 
 TEST_F (MapArenaTest, AvailableMemory)
 
 TEST_F (MapArenaTest, SizeAfterCommits)
 
 TEST_F (MapArenaTest, DataPersistsAcrossInstances)
 
 TEST_F (MapArenaTest, SyncMethod)
 
 TEST_F (MapArenaTest, BaseMethod)
 
 TEST_F (MapArenaTest, EmptyMethod)
 
 TEST_F (MapArenaTest, IsInitializedMethod)
 
 TEST_F (MapArenaTest, FileDescriptor)
 
 TEST_F (MapArenaTest, ZeroSizeReserve)
 
 TEST_F (MapArenaTest, MultipleRemapGrowth)
 
 TEST_F (MapArenaTest, OutputOperator)
 
 TEST_F (MapArenaTest, DestructorOnUninitialized)
 
 TEST_F (MapArenaTest, DestructorAfterMove)
 
 TEST_F (MapArenaTest, ManySmallAllocations)
 
 TEST_F (MapArenaTest, AlternatingAllocations)
 
 TEST_F (MapArenaTest, TypeAliases)
 
 TEST (MapArenaConstants, InitialRegionSize)
 
int main (int argc, char **argv)
 

Detailed Description

Tests for Ah Mapping.

Definition in file ah-mapping_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 588 of file ah-mapping_test.cc.

References Aleph::maps().

◆ TEST()

TEST ( MapArenaConstants  ,
InitialRegionSize   
)

Definition at line 579 of file ah-mapping_test.cc.

References Aleph::MapArena::initial_rgn_size, and Aleph::maps().

◆ TEST_F() [1/34]

TEST_F ( MapArenaTest  ,
AlternatingAllocations   
)

◆ TEST_F() [2/34]

◆ TEST_F() [3/34]

TEST_F ( MapArenaTest  ,
BaseMethod   
)

◆ TEST_F() [4/34]

TEST_F ( MapArenaTest  ,
BasicReserveCommit   
)

◆ TEST_F() [5/34]

◆ TEST_F() [6/34]

◆ TEST_F() [7/34]

◆ TEST_F() [8/34]

TEST_F ( MapArenaTest  ,
DefaultConstruction   
)

◆ TEST_F() [9/34]

TEST_F ( MapArenaTest  ,
DestructorAfterMove   
)

Definition at line 521 of file ah-mapping_test.cc.

References Aleph::maps().

◆ TEST_F() [10/34]

TEST_F ( MapArenaTest  ,
DestructorOnUninitialized   
)

Definition at line 514 of file ah-mapping_test.cc.

◆ TEST_F() [11/34]

TEST_F ( MapArenaTest  ,
EmptyMethod   
)

◆ TEST_F() [12/34]

TEST_F ( MapArenaTest  ,
FileDescriptor   
)

Definition at line 445 of file ah-mapping_test.cc.

References Aleph::MapArena::file_descriptor(), and Aleph::maps().

◆ TEST_F() [13/34]

◆ TEST_F() [14/34]

TEST_F ( MapArenaTest  ,
InitialCapacity   
)

◆ TEST_F() [15/34]

◆ TEST_F() [16/34]

TEST_F ( MapArenaTest  ,
IsInitializedMethod   
)

◆ TEST_F() [17/34]

TEST_F ( MapArenaTest  ,
IteratorOnEmpty   
)

◆ TEST_F() [18/34]

◆ TEST_F() [19/34]

◆ TEST_F() [20/34]

TEST_F ( MapArenaTest  ,
ManySmallAllocations   
)

◆ TEST_F() [21/34]

TEST_F ( MapArenaTest  ,
MoveAssignment   
)

Definition at line 154 of file ah-mapping_test.cc.

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

◆ TEST_F() [22/34]

◆ TEST_F() [23/34]

TEST_F ( MapArenaTest  ,
MoveConstruction   
)

Definition at line 131 of file ah-mapping_test.cc.

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

◆ TEST_F() [24/34]

◆ TEST_F() [25/34]

TEST_F ( MapArenaTest  ,
MultipleReserveCommit   
)

◆ TEST_F() [26/34]

TEST_F ( MapArenaTest  ,
OutputOperator   
)

◆ TEST_F() [27/34]

TEST_F ( MapArenaTest  ,
PartialCommit   
)

◆ TEST_F() [28/34]

TEST_F ( MapArenaTest  ,
RangeBasedFor   
)

◆ TEST_F() [29/34]

TEST_F ( MapArenaTest  ,
ReserveTriggersRemap   
)

◆ TEST_F() [30/34]

TEST_F ( MapArenaTest  ,
ReserveWithData   
)

◆ TEST_F() [31/34]

◆ TEST_F() [32/34]

TEST_F ( MapArenaTest  ,
SyncMethod   
)

◆ TEST_F() [33/34]

TEST_F ( MapArenaTest  ,
TypeAliases   
)

Definition at line 568 of file ah-mapping_test.cc.

◆ TEST_F() [34/34]

TEST_F ( MapArenaTest  ,
ZeroSizeReserve   
)