|
Aleph-w 3.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 116 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::and_then().
| TEST | ( | AhCppCompat | , |
| AssignmentExceptionSafety | |||
| ) |
Definition at line 198 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::has_value().
| TEST | ( | AhCppCompat | , |
| CopyAndMovePreserveState | |||
| ) |
Definition at line 140 of file ah_cpp_compat_test.cc.
| TEST | ( | AhCppCompat | , |
| DetectionMacrosAreDefined | |||
| ) |
Definition at line 58 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 77 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 67 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 131 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::or_else().
| TEST | ( | AhCppCompat | , |
| ParseLikeRoundTrip | |||
| ) |
Definition at line 92 of file ah_cpp_compat_test.cc.
| TEST | ( | AhCppCompat | , |
| Transform | |||
| ) |
Definition at line 103 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::transform().
| TEST | ( | AhCppCompat | , |
| ValueOnErrorThrows | |||
| ) |
Definition at line 86 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::value().
| TEST | ( | AhCppCompat | , |
| VoidExpectedBasic | |||
| ) |
Definition at line 158 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 172 of file ah_cpp_compat_test.cc.
References Aleph::expected< T, E >::and_then(), and Aleph::expected< T, E >::or_else().