|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Ah Mapping. More...
#include <gtest/gtest.h>#include <cstring>#include <string>#include <vector>#include <filesystem>#include <ah-map-arena.H>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) |
Tests for Ah Mapping.
Definition in file ah-mapping_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 588 of file ah-mapping_test.cc.
References Aleph::maps().
| TEST | ( | MapArenaConstants | , |
| InitialRegionSize | |||
| ) |
Definition at line 579 of file ah-mapping_test.cc.
References Aleph::MapArena::initial_rgn_size, and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| AlternatingAllocations | |||
| ) |
Definition at line 547 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| AvailableMemory | |||
| ) |
Definition at line 342 of file ah-mapping_test.cc.
References Aleph::MapArena::avail(), Aleph::MapArena::capacity(), Aleph::MapArena::commit(), Aleph::maps(), and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| BaseMethod | |||
| ) |
Definition at line 416 of file ah-mapping_test.cc.
References Aleph::MapArena::base(), Aleph::MapArena::begin(), Aleph::MapArena::mapped_addr(), and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| BasicReserveCommit | |||
| ) |
Definition at line 189 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| ConstIterators | |||
| ) |
Definition at line 305 of file ah-mapping_test.cc.
References StlAlephIterator< SetName >::begin(), Aleph::MapArena::commit(), StlAlephIterator< SetName >::end(), Aleph::maps(), and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| ConstructWithFile | |||
| ) |
Definition at line 84 of file ah-mapping_test.cc.
References Aleph::MapArena::capacity(), Aleph::MapArena::file_descriptor(), Aleph::MapArena::initial_rgn_size, Aleph::MapArena::is_initialized(), Aleph::MapArena::mapped_addr(), Aleph::maps(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| DataPersistsAcrossInstances | |||
| ) |
Definition at line 375 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::MapArena::is_initialized(), Aleph::maps(), Aleph::message(), Aleph::MapArena::reserve(), and Aleph::MapArena::sync().
| TEST_F | ( | MapArenaTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 76 of file ah-mapping_test.cc.
References Aleph::MapArena::file_descriptor(), Aleph::MapArena::is_initialized(), Aleph::MapArena::mapped_addr(), and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| DestructorAfterMove | |||
| ) |
Definition at line 521 of file ah-mapping_test.cc.
References Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| DestructorOnUninitialized | |||
| ) |
Definition at line 514 of file ah-mapping_test.cc.
| TEST_F | ( | MapArenaTest | , |
| EmptyMethod | |||
| ) |
Definition at line 424 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::MapArena::empty(), Aleph::maps(), and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| FileDescriptor | |||
| ) |
Definition at line 445 of file ah-mapping_test.cc.
References Aleph::MapArena::file_descriptor(), and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| InitAndErase | |||
| ) |
Definition at line 106 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::MapArena::empty(), Aleph::MapArena::init_and_erase(), Aleph::MapArena::is_initialized(), Aleph::maps(), Aleph::MapArena::reserve(), Aleph::MapArena::size(), and Aleph::MapArena::sync().
| TEST_F | ( | MapArenaTest | , |
| InitialCapacity | |||
| ) |
Definition at line 336 of file ah-mapping_test.cc.
References Aleph::MapArena::capacity(), Aleph::MapArena::initial_rgn_size, and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| InitMethod | |||
| ) |
Definition at line 96 of file ah-mapping_test.cc.
References Aleph::MapArena::init(), Aleph::MapArena::is_initialized(), Aleph::MapArena::mapped_addr(), Aleph::maps(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| IsInitializedMethod | |||
| ) |
Definition at line 436 of file ah-mapping_test.cc.
References Aleph::MapArena::init(), Aleph::MapArena::is_initialized(), and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| IteratorOnEmpty | |||
| ) |
Definition at line 280 of file ah-mapping_test.cc.
References Aleph::MapArena::begin(), Aleph::MapArena::end(), and Aleph::maps().
| TEST_F | ( | MapArenaTest | , |
| IteratorTraversal | |||
| ) |
Definition at line 287 of file ah-mapping_test.cc.
References Aleph::MapArena::begin(), Aleph::MapArena::commit(), Aleph::MapArena::end(), Aleph::maps(), and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| LargeReservation | |||
| ) |
Definition at line 259 of file ah-mapping_test.cc.
References Aleph::MapArena::capacity(), Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| ManySmallAllocations | |||
| ) |
Definition at line 532 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), N, Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| MoveAssignment | |||
| ) |
Definition at line 154 of file ah-mapping_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | MapArenaTest | , |
| MoveAssignmentRoundtrip | |||
| ) |
Definition at line 170 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::MapArena::is_initialized(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| MoveConstruction | |||
| ) |
Definition at line 131 of file ah-mapping_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | MapArenaTest | , |
| MultipleRemapGrowth | |||
| ) |
Definition at line 471 of file ah-mapping_test.cc.
References Aleph::MapArena::capacity(), Aleph::MapArena::commit(), Aleph::MapArena::initial_rgn_size, Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| MultipleReserveCommit | |||
| ) |
Definition at line 201 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| OutputOperator | |||
| ) |
Definition at line 495 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), output, and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| PartialCommit | |||
| ) |
Definition at line 215 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| RangeBasedFor | |||
| ) |
Definition at line 316 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| ReserveTriggersRemap | |||
| ) |
Definition at line 244 of file ah-mapping_test.cc.
References Aleph::MapArena::capacity(), Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| ReserveWithData | |||
| ) |
Definition at line 227 of file ah-mapping_test.cc.
References Aleph::MapArena::base(), Aleph::MapArena::commit(), Aleph::maps(), Aleph::message(), and Aleph::MapArena::reserve().
| TEST_F | ( | MapArenaTest | , |
| SizeAfterCommits | |||
| ) |
Definition at line 354 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::MapArena::empty(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().
| TEST_F | ( | MapArenaTest | , |
| SyncMethod | |||
| ) |
Definition at line 399 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::sync().
| TEST_F | ( | MapArenaTest | , |
| TypeAliases | |||
| ) |
Definition at line 568 of file ah-mapping_test.cc.
| TEST_F | ( | MapArenaTest | , |
| ZeroSizeReserve | |||
| ) |
Definition at line 461 of file ah-mapping_test.cc.
References Aleph::MapArena::commit(), Aleph::maps(), Aleph::MapArena::reserve(), and Aleph::MapArena::size().