|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for the C++20/23 compatibility layer (ah-cpp-compat.H). More...
Go to the source code of this file.
Functions | |
| TEST (AhCppCompat, DetectionMacrosAreDefined) | |
| TEST (AhCppCompat, HoldsValue) | |
| TEST (AhCppCompat, HoldsError) | |
| TEST (AhCppCompat, ValueOnErrorThrows) | |
| TEST (AhCppCompat, ParseLikeRoundTrip) | |
| TEST (AhCppCompat, Transform) | |
| TEST (AhCppCompat, AndThen) | |
| TEST (AhCppCompat, OrElse) | |
| TEST (AhCppCompat, CopyAndMovePreserveState) | |
| TEST (AhCppCompat, VoidExpectedBasic) | |
| TEST (AhCppCompat, VoidExpectedMonadic) | |
| TEST (AhCppCompat, AssignmentExceptionSafety) | |
Tests for the C++20/23 compatibility layer (ah-cpp-compat.H).
Exercises Aleph::expected through the same surface regardless of whether it resolves to std::expected (C++23) or the in-house polyfill (C++20/17).
Definition in file ah_cpp_compat_test.cc.
| TEST | ( | AhCppCompat | , |
| AndThen | |||
| ) |
Definition at line 118 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::and_then().
| TEST | ( | AhCppCompat | , |
| AssignmentExceptionSafety | |||
| ) |
Definition at line 202 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::has_value().
| TEST | ( | AhCppCompat | , |
| CopyAndMovePreserveState | |||
| ) |
Definition at line 142 of file ah_cpp_compat_test.cc.
| TEST | ( | AhCppCompat | , |
| DetectionMacrosAreDefined | |||
| ) |
Definition at line 60 of file ah_cpp_compat_test.cc.
References ALEPH_HAS_STD_EXPECTED, ALEPH_HAS_STD_FLAT_MAP, ALEPH_HAS_STD_GENERATOR, and ALEPH_HAS_STD_MDSPAN.
| TEST | ( | AhCppCompat | , |
| HoldsError | |||
| ) |
Definition at line 79 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::error(), Aleph::expected< T, E >::has_value(), and Aleph::expected< T, E >::value_or().
| TEST | ( | AhCppCompat | , |
| HoldsValue | |||
| ) |
Definition at line 69 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::has_value(), Aleph::expected< T, E >::value(), and Aleph::expected< T, E >::value_or().
| TEST | ( | AhCppCompat | , |
| OrElse | |||
| ) |
Definition at line 133 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::or_else().
| TEST | ( | AhCppCompat | , |
| ParseLikeRoundTrip | |||
| ) |
Definition at line 94 of file ah_cpp_compat_test.cc.
| TEST | ( | AhCppCompat | , |
| Transform | |||
| ) |
Definition at line 105 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::transform().
| TEST | ( | AhCppCompat | , |
| ValueOnErrorThrows | |||
| ) |
Definition at line 88 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::value().
| TEST | ( | AhCppCompat | , |
| VoidExpectedBasic | |||
| ) |
Definition at line 160 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::error(), Aleph::expected< T, E >::has_value(), and Aleph::expected< T, E >::value().
| TEST | ( | AhCppCompat | , |
| VoidExpectedMonadic | |||
| ) |
Definition at line 174 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::and_then(), and Aleph::expected< T, E >::or_else().