|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for the multidimensional view type (ah-mdspan.H). More...
#include <array>#include <stdexcept>#include <type_traits>#include <vector>#include <gtest/gtest.h>#include <ah-mdspan.H>Go to the source code of this file.
Concepts | |
| concept | CanCall |
| concept | CanCallAt |
Typedefs | |
| using | Rank2 = mdspan< int, dextents< size_t, 2 > > |
Functions | |
| TEST (AhMdspan, DetectionMacroIsDefined) | |
| TEST (AhMdspan, DextentsRankAndRankDynamic) | |
| TEST (AhMdspan, MixedStaticAndDynamicExtents) | |
| TEST (AhMdspan, ExtentsFromArray) | |
| TEST (AhMdspan, ExtentsEquality) | |
| TEST (AhMdspan, BasicConstructionAndShape) | |
| TEST (AhMdspan, OperatorRequiresExactRankArguments) | |
| TEST (AhMdspan, ConstructFromArrayOfDynamicExtents) | |
| TEST (AhMdspan, RowMajorIsDefaultAndMatchesFlatBufferOrder) | |
| TEST (AhMdspan, LayoutLeftIsColumnMajor) | |
| TEST (AhMdspan, WriteThroughViewIsVisibleThroughBuffer) | |
| TEST (AhMdspan, ReadOnlyViewOverConstElement) | |
| TEST (AhMdspan, AtThrowsOnOutOfRangeIndex) | |
| TEST (AhMdspan, OneDimensionalView) | |
| TEST (AhMdspan, ThreeDimensionalRowMajorRoundTrip) | |
| TEST (AhMdspan, DefaultConstructedIsEmptyWithNullData) | |
| TEST (AhMdspan, MultipleIndependentViewsOverSameBufferDoNotInterfere) | |
| TEST (AhMdspan, MutableViewConvertsImplicitlyToConstView) | |
Tests for the multidimensional view type (ah-mdspan.H).
Exercises Aleph::mdspan through the same surface regardless of whether it resolves to std::mdspan (C++23) or the in-house C++20 polyfill.
Definition in file ah_mdspan_test.cc.
Definition at line 59 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| AtThrowsOnOutOfRangeIndex | |||
| ) |
Definition at line 212 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| BasicConstructionAndShape | |||
| ) |
Definition at line 128 of file ah_mdspan_test.cc.
References OhashCommon< HashTbl, Key >::empty(), m, and OhashCommon< HashTbl, Key >::size().
| TEST | ( | AhMdspan | , |
| ConstructFromArrayOfDynamicExtents | |||
| ) |
Definition at line 154 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| DefaultConstructedIsEmptyWithNullData | |||
| ) |
Definition at line 247 of file ah_mdspan_test.cc.
References OhashCommon< HashTbl, Key >::empty(), m, and OhashCommon< HashTbl, Key >::size().
| TEST | ( | AhMdspan | , |
| DetectionMacroIsDefined | |||
| ) |
Definition at line 79 of file ah_mdspan_test.cc.
References ALEPH_HAS_STD_MDSPAN.
| TEST | ( | AhMdspan | , |
| DextentsRankAndRankDynamic | |||
| ) |
Definition at line 86 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| ExtentsEquality | |||
| ) |
Definition at line 119 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| ExtentsFromArray | |||
| ) |
Definition at line 111 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| LayoutLeftIsColumnMajor | |||
| ) |
Definition at line 178 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| MixedStaticAndDynamicExtents | |||
| ) |
Definition at line 97 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| MultipleIndependentViewsOverSameBufferDoNotInterfere | |||
| ) |
Definition at line 255 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| MutableViewConvertsImplicitlyToConstView | |||
| ) |
Definition at line 264 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| OneDimensionalView | |||
| ) |
Definition at line 221 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| OperatorRequiresExactRankArguments | |||
| ) |
Definition at line 141 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| ReadOnlyViewOverConstElement | |||
| ) |
Definition at line 203 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| RowMajorIsDefaultAndMatchesFlatBufferOrder | |||
| ) |
Definition at line 163 of file ah_mdspan_test.cc.
References m.
| TEST | ( | AhMdspan | , |
| ThreeDimensionalRowMajorRoundTrip | |||
| ) |
Definition at line 230 of file ah_mdspan_test.cc.
| TEST | ( | AhMdspan | , |
| WriteThroughViewIsVisibleThroughBuffer | |||
| ) |
Definition at line 192 of file ah_mdspan_test.cc.
References m.