|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Unit tests for Phase 1 cell storages (Dense_Cell_Storage, Bit_Cell_Storage).
More...
#include <cstdint>#include <limits>#include <stdexcept>#include <type_traits>#include <utility>#include <gtest/gtest.h>#include <tpl_ca_concepts.H>#include <tpl_ca_storage.H>#include <tpl_ca_bit_storage.H>Go to the source code of this file.
Functions | |
| TEST (CADenseCellStorage, DefaultConstructedIsEmpty) | |
| TEST (CADenseCellStorage, ConstructorAllocatesAndInitialises) | |
| TEST (CADenseCellStorage, RowMajorLinearIndex) | |
| TEST (CADenseCellStorage, SetAndAtRoundTrip2D) | |
| TEST (CADenseCellStorage, SetAndAt3D) | |
| TEST (CADenseCellStorage, OneDimensional) | |
| TEST (CADenseCellStorage, OutOfRangeThrows) | |
| TEST (CADenseCellStorage, FillResetsAllCells) | |
| TEST (CADenseCellStorage, SwapIsConstantTimeAndExchanges) | |
| TEST (CADenseCellStorage, FreeFunctionSwap) | |
| TEST (CADenseCellStorage, ViewMatchesShapeAndAliasesTheSameBuffer) | |
| TEST (CADenseCellStorage, EmptyStorageViewReturnsEmptyView) | |
| TEST (CADenseCellStorage, WriteThroughViewIsVisibleThroughStorageApi) | |
| TEST (CADenseCellStorage, WriteThroughStorageIsVisibleThroughView) | |
| TEST (CADenseCellStorage, ConstStorageYieldsReadOnlyView) | |
| TEST (CADenseCellStorage, ViewRowMajorOrderMatchesLinearIndex) | |
| TEST (CADenseCellStorage, ViewOverThreeDimensionalStorage) | |
| TEST (CADenseCellStorage, MoveTransfersOwnership) | |
| TEST (CABitCellStorage, DefaultConstructedIsEmpty) | |
| TEST (CABitCellStorage, ConstructorInitialisesValue) | |
| TEST (CABitCellStorage, SetAndAtRoundTrip) | |
| TEST (CABitCellStorage, RowMajorLinearIndex) | |
| TEST (CABitCellStorage, FillToggles) | |
| TEST (CABitCellStorage, SwapExchangesContentsAndExtents) | |
| TEST (CABitCellStorage, OutOfRangeThrows) | |
| TEST (CABitCellStorage, ThreeDimensional) | |
| TEST (CABitCellStorage, ExtentsProductOverflowThrows) | |
Unit tests for Phase 1 cell storages (Dense_Cell_Storage, Bit_Cell_Storage).
Verifies shape, indexing, copy/move semantics, swap and fill, plus a pair of static_assert checks confirming both storages still satisfy the Phase 0 LatticeLike concept.
Definition in file tpl_ca_storage_test.cc.
| TEST | ( | CABitCellStorage | , |
| ConstructorInitialisesValue | |||
| ) |
Definition at line 270 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CABitCellStorage | , |
| DefaultConstructedIsEmpty | |||
| ) |
Definition at line 263 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Bit_Cell_Storage< N >::dimension(), and Aleph::CA::Bit_Cell_Storage< N >::size().
| TEST | ( | CABitCellStorage | , |
| ExtentsProductOverflowThrows | |||
| ) |
Definition at line 337 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and max().
| TEST | ( | CABitCellStorage | , |
| FillToggles | |||
| ) |
Definition at line 298 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Bit_Cell_Storage< N >::fill().
| TEST | ( | CABitCellStorage | , |
| OutOfRangeThrows | |||
| ) |
Definition at line 320 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CABitCellStorage | , |
| RowMajorLinearIndex | |||
| ) |
Definition at line 290 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CABitCellStorage | , |
| SetAndAtRoundTrip | |||
| ) |
Definition at line 279 of file tpl_ca_storage_test.cc.
References Aleph::and, Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Bit_Cell_Storage< N >::set().
| TEST | ( | CABitCellStorage | , |
| SwapExchangesContentsAndExtents | |||
| ) |
Definition at line 309 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Bit_Cell_Storage< N >::swap().
| TEST | ( | CABitCellStorage | , |
| ThreeDimensional | |||
| ) |
Definition at line 328 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Bit_Cell_Storage< N >::set().
| TEST | ( | CADenseCellStorage | , |
| ConstructorAllocatesAndInitialises | |||
| ) |
Definition at line 82 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CADenseCellStorage | , |
| ConstStorageYieldsReadOnlyView | |||
| ) |
Definition at line 216 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::view().
| TEST | ( | CADenseCellStorage | , |
| DefaultConstructedIsEmpty | |||
| ) |
Definition at line 72 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Dense_Cell_Storage< T, N >::data(), Aleph::CA::Dense_Cell_Storage< T, N >::dimension(), Aleph::CA::Dense_Cell_Storage< T, N >::extents(), and Aleph::CA::Dense_Cell_Storage< T, N >::size().
| TEST | ( | CADenseCellStorage | , |
| EmptyStorageViewReturnsEmptyView | |||
| ) |
Definition at line 192 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::view().
| TEST | ( | CADenseCellStorage | , |
| FillResetsAllCells | |||
| ) |
Definition at line 143 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::set().
| TEST | ( | CADenseCellStorage | , |
| FreeFunctionSwap | |||
| ) |
Definition at line 173 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::swap().
| TEST | ( | CADenseCellStorage | , |
| MoveTransfersOwnership | |||
| ) |
Definition at line 249 of file tpl_ca_storage_test.cc.
References Aleph::CA::Dense_Cell_Storage< T, N >::at(), Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Dense_Cell_Storage< T, N >::data(), and Aleph::CA::Dense_Cell_Storage< T, N >::size().
| TEST | ( | CADenseCellStorage | , |
| OneDimensional | |||
| ) |
Definition at line 123 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::set().
| TEST | ( | CADenseCellStorage | , |
| OutOfRangeThrows | |||
| ) |
Definition at line 132 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CADenseCellStorage | , |
| RowMajorLinearIndex | |||
| ) |
Definition at line 93 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CADenseCellStorage | , |
| SetAndAt3D | |||
| ) |
Definition at line 113 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::set().
| TEST | ( | CADenseCellStorage | , |
| SetAndAtRoundTrip2D | |||
| ) |
Definition at line 103 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::set().
| TEST | ( | CADenseCellStorage | , |
| SwapIsConstantTimeAndExchanges | |||
| ) |
Definition at line 153 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::data().
| TEST | ( | CADenseCellStorage | , |
| ViewMatchesShapeAndAliasesTheSameBuffer | |||
| ) |
Definition at line 182 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Dense_Cell_Storage< T, N >::data(), Aleph::CA::Dense_Cell_Storage< T, N >::rank, and Aleph::CA::Dense_Cell_Storage< T, N >::view().
| TEST | ( | CADenseCellStorage | , |
| ViewOverThreeDimensionalStorage | |||
| ) |
Definition at line 240 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Dense_Cell_Storage< T, N >::size(), and Aleph::CA::Dense_Cell_Storage< T, N >::view().
| TEST | ( | CADenseCellStorage | , |
| ViewRowMajorOrderMatchesLinearIndex | |||
| ) |
Definition at line 225 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::next(), and Aleph::CA::Dense_Cell_Storage< T, N >::view().
| TEST | ( | CADenseCellStorage | , |
| WriteThroughStorageIsVisibleThroughView | |||
| ) |
Definition at line 208 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::view().
| TEST | ( | CADenseCellStorage | , |
| WriteThroughViewIsVisibleThroughStorageApi | |||
| ) |
Definition at line 200 of file tpl_ca_storage_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Dense_Cell_Storage< T, N >::view().