| 1 | // ====================================================================== lgtm [cpp/missing-header-guard]cxx . . $ `<file>/tests/thirdparty/doctest/doctest.h`/ |
| 2 | // == DO NOT MODIFY THIS FILE BY HAND - IT IS AUTO GENERATED BY CMAKE! == |
| 3 | // ====================================================================== |
| 4 | // |
| 5 | // doctest.h - the lightest feature-rich C++ single-header testing framework for unit tests and TDD |
| 6 | // |
| 7 | // Copyright (c) 2016-2023 Viktor Kirilov |
| 8 | // |
| 9 | // Distributed under the MIT Software License |
| 10 | // See accompanying file LICENSE.txt or copy at |
| 11 | // https://opensource.org/licenses/MIT |
| 12 | // |
| 13 | // The documentation can be found at the library's page: |
| 14 | // https://github.com/doctest/doctest/blob/master/doc/markdown/readme.md |
| 15 | // |
| 16 | // ================================================================================================= |
| 17 | // ================================================================================================= |
| 18 | // ================================================================================================= |
| 19 | // |
| 20 | // The library is heavily influenced by Catch - https://github.com/catchorg/Catch2 |
| 21 | // which uses the Boost Software License - Version 1.0 |
| 22 | // see here - https://github.com/catchorg/Catch2/blob/master/LICENSE.txt |
| 23 | // |
| 24 | // The concept of subcases (sections in Catch) and expression decomposition are from there. |
| 25 | // Some parts of the code are taken directly: |
| 26 | // - stringification - the detection of "ostream& operator<<(ostream&, const T&)" and StringMaker<> |
| 27 | // - the Approx() helper class for floating point comparison |
| 28 | // - colors in the console |
| 29 | // - breaking into a debugger |
| 30 | // - signal / SEH handling |
| 31 | // - timer |
| 32 | // - XmlWriter class - thanks to Phil Nash for allowing the direct reuse (AKA copy/paste) |
| 33 | // |
| 34 | // The expression decomposing templates are taken from lest - https://github.com/martinmoene/lest |
| 35 | // which uses the Boost Software License - Version 1.0 |
| 36 | // see here - https://github.com/martinmoene/lest/blob/master/LICENSE.txt |
| 37 | // |
| 38 | // ================================================================================================= |
| 39 | // ================================================================================================= |
| 40 | // ================================================================================================= |
| 41 | |
| 42 | #ifndef DOCTEST_LIBRARY_INCLUDEDcxx . . $ `tests/thirdparty/doctest/doctest.h:43:9`! |
| 43 | #define DOCTEST_LIBRARY_INCLUDEDcxx . . $ `tests/thirdparty/doctest/doctest.h:43:9`! |
| 44 | |
| 45 | // ================================================================================================= |
| 46 | // == VERSION ====================================================================================== |
| 47 | // ================================================================================================= |
| 48 | |
| 49 | #define DOCTEST_VERSION_MAJORcxx . . $ `tests/thirdparty/doctest/doctest.h:49:9`! 2 |
| 50 | #define DOCTEST_VERSION_MINORcxx . . $ `tests/thirdparty/doctest/doctest.h:50:9`! 4 |
| 51 | #define DOCTEST_VERSION_PATCHcxx . . $ `tests/thirdparty/doctest/doctest.h:51:9`! 11 |
| 52 | |
| 53 | // util we need here |
| 54 | #define DOCTEST_TOSTR_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:54:9`!(x) #x |
| 55 | #define DOCTEST_TOSTRcxx . . $ `tests/thirdparty/doctest/doctest.h:55:9`!(x) DOCTEST_TOSTR_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:54:9`!(x) |
| 56 | |
| 57 | #define DOCTEST_VERSION_STRcxx . . $ `tests/thirdparty/doctest/doctest.h:57:9`! \ |
| 58 | DOCTEST_TOSTRcxx . . $ `tests/thirdparty/doctest/doctest.h:55:9`!(DOCTEST_VERSION_MAJORcxx . . $ `tests/thirdparty/doctest/doctest.h:49:9`!) "." \ |
| 59 | DOCTEST_TOSTRcxx . . $ `tests/thirdparty/doctest/doctest.h:55:9`!(DOCTEST_VERSION_MINORcxx . . $ `tests/thirdparty/doctest/doctest.h:50:9`!) "." \ |
| 60 | DOCTEST_TOSTRcxx . . $ `tests/thirdparty/doctest/doctest.h:55:9`!(DOCTEST_VERSION_PATCHcxx . . $ `tests/thirdparty/doctest/doctest.h:51:9`!) |
| 61 | |
| 62 | #define DOCTEST_VERSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:62:9`! \ |
| 63 | (DOCTEST_VERSION_MAJOR * 10000 + DOCTEST_VERSION_MINOR * 100 + DOCTEST_VERSION_PATCH) |
| 64 | |
| 65 | // ================================================================================================= |
| 66 | // == COMPILER VERSION ============================================================================= |
| 67 | // ================================================================================================= |
| 68 | |
| 69 | // ideas for the version stuff are taken from here: https://github.com/cxxstuff/cxx_detect |
| 70 | |
| 71 | #ifdef _MSC_VER |
| 72 | #define DOCTEST_CPLUSPLUS _MSVC_LANG |
| 73 | #else |
| 74 | #define DOCTEST_CPLUSPLUScxx . . $ `tests/thirdparty/doctest/doctest.h:74:9`! __cpluspluscxx . . $ `<built-in>:484:9`! |
| 75 | #endif |
| 76 | |
| 77 | #define DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(MAJOR, MINOR, PATCH) ((MAJOR)*10000000 + (MINOR)*100000 + (PATCH)) |
| 78 | |
| 79 | // GCC/Clang and GCC/MSVC are mutually exclusive, but Clang/MSVC are not because of clang-cl... |
| 80 | #if defined(_MSC_VER) && defined(_MSC_FULL_VER) |
| 81 | #if _MSC_VER == _MSC_FULL_VER / 10000 |
| 82 | #define DOCTEST_MSVC DOCTEST_COMPILER(_MSC_VER / 100, _MSC_VER % 100, _MSC_FULL_VER % 10000) |
| 83 | #else // MSVC |
| 84 | #define DOCTEST_MSVC \ |
| 85 | DOCTEST_COMPILER(_MSC_VER / 100, (_MSC_FULL_VER / 100000) % 100, _MSC_FULL_VER % 100000) |
| 86 | #endif // MSVC |
| 87 | #endif // MSVC |
| 88 | #if defined(__clang__cxx . . $ `<built-in>:3:9`!) && defined(__clang_minor__cxx . . $ `<built-in>:5:9`!) && defined(__clang_patchlevel__cxx . . $ `<built-in>:6:9`!) |
| 89 | #define DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(__clang_major__cxx . . $ `<built-in>:4:9`!, __clang_minor__cxx . . $ `<built-in>:5:9`!, __clang_patchlevel__cxx . . $ `<built-in>:6:9`!) |
| 90 | #elif defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__) && \ |
| 91 | !defined(__INTEL_COMPILER) |
| 92 | #define DOCTEST_GCC DOCTEST_COMPILER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) |
| 93 | #endif // GCC |
| 94 | #if defined(__INTEL_COMPILER) |
| 95 | #define DOCTEST_ICC DOCTEST_COMPILER(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0) |
| 96 | #endif // ICC |
| 97 | |
| 98 | #ifndef DOCTEST_MSVC |
| 99 | #define DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! 0 |
| 100 | #endif // DOCTEST_MSVC |
| 101 | #ifndef DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! |
| 102 | #define DOCTEST_CLANG 0 |
| 103 | #endif // DOCTEST_CLANG |
| 104 | #ifndef DOCTEST_GCC |
| 105 | #define DOCTEST_GCCcxx . . $ `tests/thirdparty/doctest/doctest.h:105:9`! 0 |
| 106 | #endif // DOCTEST_GCC |
| 107 | #ifndef DOCTEST_ICC |
| 108 | #define DOCTEST_ICCcxx . . $ `tests/thirdparty/doctest/doctest.h:108:9`! 0 |
| 109 | #endif // DOCTEST_ICC |
| 110 | |
| 111 | // ================================================================================================= |
| 112 | // == COMPILER WARNINGS HELPERS ==================================================================== |
| 113 | // ================================================================================================= |
| 114 | |
| 115 | #if DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! && !DOCTEST_ICCcxx . . $ `tests/thirdparty/doctest/doctest.h:108:9`! |
| 116 | #define DOCTEST_PRAGMA_TO_STRcxx . . $ `tests/thirdparty/doctest/doctest.h:116:9`!(x) _Pragma(#x) |
| 117 | #define DOCTEST_CLANG_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:117:9`! _Pragma("clang diagnostic push") |
| 118 | #define DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!(w) DOCTEST_PRAGMA_TO_STRcxx . . $ `tests/thirdparty/doctest/doctest.h:116:9`!(clang diagnostic ignored w) |
| 119 | #define DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! _Pragma("clang diagnostic pop") |
| 120 | #define DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!(w) \ |
| 121 | DOCTEST_CLANG_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:117:9`! DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!(w) |
| 122 | #else // DOCTEST_CLANG |
| 123 | #define DOCTEST_CLANG_SUPPRESS_WARNING_PUSH |
| 124 | #define DOCTEST_CLANG_SUPPRESS_WARNING(w) |
| 125 | #define DOCTEST_CLANG_SUPPRESS_WARNING_POP |
| 126 | #define DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH(w) |
| 127 | #endif // DOCTEST_CLANG |
| 128 | |
| 129 | #if DOCTEST_GCCcxx . . $ `tests/thirdparty/doctest/doctest.h:105:9`! |
| 130 | #define DOCTEST_PRAGMA_TO_STR(x) _Pragma(#x) |
| 131 | #define DOCTEST_GCC_SUPPRESS_WARNING_PUSH _Pragma("GCC diagnostic push") |
| 132 | #define DOCTEST_GCC_SUPPRESS_WARNING(w) DOCTEST_PRAGMA_TO_STR(GCC diagnostic ignored w) |
| 133 | #define DOCTEST_GCC_SUPPRESS_WARNING_POP _Pragma("GCC diagnostic pop") |
| 134 | #define DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH(w) \ |
| 135 | DOCTEST_GCC_SUPPRESS_WARNING_PUSH DOCTEST_GCC_SUPPRESS_WARNING(w) |
| 136 | #else // DOCTEST_GCC |
| 137 | #define DOCTEST_GCC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:137:9`! |
| 138 | #define DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!(w) |
| 139 | #define DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 140 | #define DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:140:9`!(w) |
| 141 | #endif // DOCTEST_GCC |
| 142 | |
| 143 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! |
| 144 | #define DOCTEST_MSVC_SUPPRESS_WARNING_PUSH __pragma(warning(push)) |
| 145 | #define DOCTEST_MSVC_SUPPRESS_WARNING(w) __pragma(warning(disable : w)) |
| 146 | #define DOCTEST_MSVC_SUPPRESS_WARNING_POP __pragma(warning(pop)) |
| 147 | #define DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(w) \ |
| 148 | DOCTEST_MSVC_SUPPRESS_WARNING_PUSH DOCTEST_MSVC_SUPPRESS_WARNING(w) |
| 149 | #else // DOCTEST_MSVC |
| 150 | #define DOCTEST_MSVC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:150:9`! |
| 151 | #define DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(w) |
| 152 | #define DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 153 | #define DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(w) |
| 154 | #endif // DOCTEST_MSVC |
| 155 | |
| 156 | // ================================================================================================= |
| 157 | // == COMPILER WARNINGS ============================================================================ |
| 158 | // ================================================================================================= |
| 159 | |
| 160 | // both the header and the implementation suppress all of these, |
| 161 | // so it only makes sense to aggregate them like so |
| 162 | #define DOCTEST_SUPPRESS_COMMON_WARNINGS_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:162:9`! \ |
| 163 | DOCTEST_CLANG_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:117:9`! \ |
| 164 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wunknown-pragmas") \ |
| 165 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wweak-vtables") \ |
| 166 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wpadded") \ |
| 167 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wmissing-prototypes") \ |
| 168 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wc++98-compat") \ |
| 169 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wc++98-compat-pedantic") \ |
| 170 | \ |
| 171 | DOCTEST_GCC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:137:9`! \ |
| 172 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wunknown-pragmas") \ |
| 173 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wpragmas") \ |
| 174 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Weffc++") \ |
| 175 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wstrict-overflow") \ |
| 176 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wstrict-aliasing") \ |
| 177 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wmissing-declarations") \ |
| 178 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wuseless-cast") \ |
| 179 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wnoexcept") \ |
| 180 | \ |
| 181 | DOCTEST_MSVC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:150:9`! \ |
| 182 | /* these 4 also disabled globally via cmake: */ \ |
| 183 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4514) /* unreferenced inline function has been removed */ \ |
| 184 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4571) /* SEH related */ \ |
| 185 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4710) /* function not inlined */ \ |
| 186 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4711) /* function selected for inline expansion*/ \ |
| 187 | /* common ones */ \ |
| 188 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4616) /* invalid compiler warning */ \ |
| 189 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4619) /* invalid compiler warning */ \ |
| 190 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4996) /* The compiler encountered a deprecated declaration */ \ |
| 191 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4706) /* assignment within conditional expression */ \ |
| 192 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4512) /* 'class' : assignment operator could not be generated */ \ |
| 193 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4127) /* conditional expression is constant */ \ |
| 194 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4820) /* padding */ \ |
| 195 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4625) /* copy constructor was implicitly deleted */ \ |
| 196 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4626) /* assignment operator was implicitly deleted */ \ |
| 197 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5027) /* move assignment operator implicitly deleted */ \ |
| 198 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5026) /* move constructor was implicitly deleted */ \ |
| 199 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4640) /* construction of local static object not thread-safe */ \ |
| 200 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5045) /* Spectre mitigation for memory load */ \ |
| 201 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5264) /* 'variable-name': 'const' variable is not used */ \ |
| 202 | /* static analysis */ \ |
| 203 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(26439) /* Function may not throw. Declare it 'noexcept' */ \ |
| 204 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(26495) /* Always initialize a member variable */ \ |
| 205 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(26451) /* Arithmetic overflow ... */ \ |
| 206 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(26444) /* Avoid unnamed objects with custom ctor and dtor... */ \ |
| 207 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(26812) /* Prefer 'enum class' over 'enum' */ |
| 208 | |
| 209 | #define DOCTEST_SUPPRESS_COMMON_WARNINGS_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:209:9`! \ |
| 210 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! \ |
| 211 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! \ |
| 212 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 213 | |
| 214 | DOCTEST_SUPPRESS_COMMON_WARNINGS_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:162:9`! |
| 215 | |
| 216 | DOCTEST_CLANG_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:117:9`! |
| 217 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wnon-virtual-dtor") |
| 218 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wdeprecated") |
| 219 | |
| 220 | DOCTEST_GCC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:137:9`! |
| 221 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wctor-dtor-privacy") |
| 222 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wnon-virtual-dtor") |
| 223 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wsign-promo") |
| 224 | |
| 225 | DOCTEST_MSVC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:150:9`! |
| 226 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4623) // default constructor was implicitly defined as deleted |
| 227 | |
| 228 | #define DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGINcxx . . $ `tests/thirdparty/doctest/doctest.h:228:9`! \ |
| 229 | DOCTEST_MSVC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:150:9`! \ |
| 230 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4548) /* before comma no effect; expected side - effect */ \ |
| 231 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4265) /* virtual functions, but destructor is not virtual */ \ |
| 232 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4986) /* exception specification does not match previous */ \ |
| 233 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4350) /* 'member1' called instead of 'member2' */ \ |
| 234 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4668) /* not defined as a preprocessor macro */ \ |
| 235 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4365) /* signed/unsigned mismatch */ \ |
| 236 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4774) /* format string not a string literal */ \ |
| 237 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4820) /* padding */ \ |
| 238 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4625) /* copy constructor was implicitly deleted */ \ |
| 239 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4626) /* assignment operator was implicitly deleted */ \ |
| 240 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5027) /* move assignment operator implicitly deleted */ \ |
| 241 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5026) /* move constructor was implicitly deleted */ \ |
| 242 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4623) /* default constructor was implicitly deleted */ \ |
| 243 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5039) /* pointer to pot. throwing function passed to extern C */ \ |
| 244 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5045) /* Spectre mitigation for memory load */ \ |
| 245 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5105) /* macro producing 'defined' has undefined behavior */ \ |
| 246 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4738) /* storing float result in memory, loss of performance */ \ |
| 247 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5262) /* implicit fall-through */ |
| 248 | |
| 249 | #define DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_ENDcxx . . $ `tests/thirdparty/doctest/doctest.h:249:9`! DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 250 | |
| 251 | // ================================================================================================= |
| 252 | // == FEATURE DETECTION ============================================================================ |
| 253 | // ================================================================================================= |
| 254 | |
| 255 | // general compiler feature support table: https://en.cppreference.com/w/cpp/compiler_support |
| 256 | // MSVC C++11 feature support table: https://msdn.microsoft.com/en-us/library/hh567368.aspx |
| 257 | // GCC C++11 feature support table: https://gcc.gnu.org/projects/cxx-status.html |
| 258 | // MSVC version table: |
| 259 | // https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering |
| 260 | // MSVC++ 14.3 (17) _MSC_VER == 1930 (Visual Studio 2022) |
| 261 | // MSVC++ 14.2 (16) _MSC_VER == 1920 (Visual Studio 2019) |
| 262 | // MSVC++ 14.1 (15) _MSC_VER == 1910 (Visual Studio 2017) |
| 263 | // MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015) |
| 264 | // MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013) |
| 265 | // MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012) |
| 266 | // MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010) |
| 267 | // MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008) |
| 268 | // MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005) |
| 269 | |
| 270 | // Universal Windows Platform support |
| 271 | #if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) |
| 272 | #define DOCTEST_CONFIG_NO_WINDOWS_SEH |
| 273 | #endif // WINAPI_FAMILY |
| 274 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! && !defined(DOCTEST_CONFIG_WINDOWS_SEH) |
| 275 | #define DOCTEST_CONFIG_WINDOWS_SEH |
| 276 | #endif // MSVC |
| 277 | #if defined(DOCTEST_CONFIG_NO_WINDOWS_SEH) && defined(DOCTEST_CONFIG_WINDOWS_SEH) |
| 278 | #undef DOCTEST_CONFIG_WINDOWS_SEH |
| 279 | #endif // DOCTEST_CONFIG_NO_WINDOWS_SEH |
| 280 | |
| 281 | #if !defined(_WIN32) && !defined(__QNX__) && !defined(DOCTEST_CONFIG_POSIX_SIGNALS) && \ |
| 282 | !defined(__EMSCRIPTEN__) && !defined(__wasi__) |
| 283 | #define DOCTEST_CONFIG_POSIX_SIGNALScxx . . $ `tests/thirdparty/doctest/doctest.h:283:9`! |
| 284 | #endif // _WIN32 |
| 285 | #if defined(DOCTEST_CONFIG_NO_POSIX_SIGNALS) && defined(DOCTEST_CONFIG_POSIX_SIGNALScxx . . $ `tests/thirdparty/doctest/doctest.h:283:9`!) |
| 286 | #undef DOCTEST_CONFIG_POSIX_SIGNALS |
| 287 | #endif // DOCTEST_CONFIG_NO_POSIX_SIGNALS |
| 288 | |
| 289 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 290 | #if !defined(__cpp_exceptionscxx . . $ `<built-in>:45:9`!) && !defined(__EXCEPTIONScxx . . $ `<built-in>:75:9`!) && !defined(_CPPUNWIND) \ |
| 291 | || defined(__wasi__) |
| 292 | #define DOCTEST_CONFIG_NO_EXCEPTIONS |
| 293 | #endif // no exceptions |
| 294 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 295 | |
| 296 | #ifdef DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS |
| 297 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 298 | #define DOCTEST_CONFIG_NO_EXCEPTIONS |
| 299 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 300 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS |
| 301 | |
| 302 | #if defined(DOCTEST_CONFIG_NO_EXCEPTIONS) && !defined(DOCTEST_CONFIG_NO_TRY_CATCH_IN_ASSERTS) |
| 303 | #define DOCTEST_CONFIG_NO_TRY_CATCH_IN_ASSERTS |
| 304 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS && !DOCTEST_CONFIG_NO_TRY_CATCH_IN_ASSERTS |
| 305 | |
| 306 | #ifdef __wasi__ |
| 307 | #define DOCTEST_CONFIG_NO_MULTITHREADING |
| 308 | #endif |
| 309 | |
| 310 | #if defined(DOCTEST_CONFIG_IMPLEMENT_WITH_MAINcxx . . $ `tests/src/unit.cpp:9:9`!) && !defined(DOCTEST_CONFIG_IMPLEMENT) |
| 311 | #define DOCTEST_CONFIG_IMPLEMENTcxx . . $ `tests/thirdparty/doctest/doctest.h:311:9`! |
| 312 | #endif // DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN |
| 313 | |
| 314 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 315 | #if DOCTEST_MSVC |
| 316 | #define DOCTEST_SYMBOL_EXPORT __declspec(dllexport) |
| 317 | #define DOCTEST_SYMBOL_IMPORT __declspec(dllimport) |
| 318 | #else // MSVC |
| 319 | #define DOCTEST_SYMBOL_EXPORT __attribute__((dllexport)) |
| 320 | #define DOCTEST_SYMBOL_IMPORT __attribute__((dllimport)) |
| 321 | #endif // MSVC |
| 322 | #else // _WIN32 |
| 323 | #define DOCTEST_SYMBOL_EXPORTcxx . . $ `tests/thirdparty/doctest/doctest.h:323:9`! __attribute__((visibility("default"))) |
| 324 | #define DOCTEST_SYMBOL_IMPORTcxx . . $ `tests/thirdparty/doctest/doctest.h:324:9`! |
| 325 | #endif // _WIN32 |
| 326 | |
| 327 | #ifdef DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
| 328 | #ifdef DOCTEST_CONFIG_IMPLEMENT |
| 329 | #define DOCTEST_INTERFACE DOCTEST_SYMBOL_EXPORT |
| 330 | #else // DOCTEST_CONFIG_IMPLEMENT |
| 331 | #define DOCTEST_INTERFACE DOCTEST_SYMBOL_IMPORT |
| 332 | #endif // DOCTEST_CONFIG_IMPLEMENT |
| 333 | #else // DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
| 334 | #define DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! |
| 335 | #endif // DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
| 336 | |
| 337 | // needed for extern template instantiations |
| 338 | // see https://github.com/fmtlib/fmt/issues/2228 |
| 339 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! |
| 340 | #define DOCTEST_INTERFACE_DECL |
| 341 | #define DOCTEST_INTERFACE_DEF DOCTEST_INTERFACE |
| 342 | #else // DOCTEST_MSVC |
| 343 | #define DOCTEST_INTERFACE_DECLcxx . . $ `tests/thirdparty/doctest/doctest.h:343:9`! DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! |
| 344 | #define DOCTEST_INTERFACE_DEFcxx . . $ `tests/thirdparty/doctest/doctest.h:344:9`! |
| 345 | #endif // DOCTEST_MSVC |
| 346 | |
| 347 | #define DOCTEST_EMPTYcxx . . $ `tests/thirdparty/doctest/doctest.h:347:9`! |
| 348 | |
| 349 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! |
| 350 | #define DOCTEST_NOINLINE __declspec(noinline) |
| 351 | #define DOCTEST_UNUSED |
| 352 | #define DOCTEST_ALIGNMENT(x) |
| 353 | #elif DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! && DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! < DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(3, 5, 0) |
| 354 | #define DOCTEST_NOINLINE |
| 355 | #define DOCTEST_UNUSED |
| 356 | #define DOCTEST_ALIGNMENT(x) |
| 357 | #else |
| 358 | #define DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! __attribute__((noinline)) |
| 359 | #define DOCTEST_UNUSEDcxx . . $ `tests/thirdparty/doctest/doctest.h:359:9`! __attribute__((unused)) |
| 360 | #define DOCTEST_ALIGNMENTcxx . . $ `tests/thirdparty/doctest/doctest.h:360:9`!(x) __attribute__((aligned(x))) |
| 361 | #endif |
| 362 | |
| 363 | #ifdef DOCTEST_CONFIG_NO_CONTRADICTING_INLINE |
| 364 | #define DOCTEST_INLINE_NOINLINE inline |
| 365 | #else |
| 366 | #define DOCTEST_INLINE_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:366:9`! inline DOCTEST_NOINLINE |
| 367 | #endif |
| 368 | |
| 369 | #ifndef DOCTEST_NORETURN |
| 370 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! && (DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! < DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(19, 0, 0)) |
| 371 | #define DOCTEST_NORETURN |
| 372 | #else // DOCTEST_MSVC |
| 373 | #define DOCTEST_NORETURNcxx . . $ `tests/thirdparty/doctest/doctest.h:373:9`! [[noreturn]] |
| 374 | #endif // DOCTEST_MSVC |
| 375 | #endif // DOCTEST_NORETURN |
| 376 | |
| 377 | #ifndef DOCTEST_NOEXCEPT |
| 378 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! && (DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! < DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(19, 0, 0)) |
| 379 | #define DOCTEST_NOEXCEPT |
| 380 | #else // DOCTEST_MSVC |
| 381 | #define DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! noexcept |
| 382 | #endif // DOCTEST_MSVC |
| 383 | #endif // DOCTEST_NOEXCEPT |
| 384 | |
| 385 | #ifndef DOCTEST_CONSTEXPR |
| 386 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! && (DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! < DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(19, 0, 0)) |
| 387 | #define DOCTEST_CONSTEXPR const |
| 388 | #define DOCTEST_CONSTEXPR_FUNC inline |
| 389 | #else // DOCTEST_MSVC |
| 390 | #define DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! constexpr |
| 391 | #define DOCTEST_CONSTEXPR_FUNCcxx . . $ `tests/thirdparty/doctest/doctest.h:391:9`! constexpr |
| 392 | #endif // DOCTEST_MSVC |
| 393 | #endif // DOCTEST_CONSTEXPR |
| 394 | |
| 395 | #ifndef DOCTEST_NO_SANITIZE_INTEGER |
| 396 | #if DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! >= DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(3, 7, 0) |
| 397 | #define DOCTEST_NO_SANITIZE_INTEGERcxx . . $ `tests/thirdparty/doctest/doctest.h:397:9`! __attribute__((no_sanitize("integer"))) |
| 398 | #else |
| 399 | #define DOCTEST_NO_SANITIZE_INTEGER |
| 400 | #endif |
| 401 | #endif // DOCTEST_NO_SANITIZE_INTEGER |
| 402 | |
| 403 | // ================================================================================================= |
| 404 | // == FEATURE DETECTION END ======================================================================== |
| 405 | // ================================================================================================= |
| 406 | |
| 407 | #define DOCTEST_DECLARE_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:407:9`!(name) \ |
| 408 | virtual ~name(); \ |
| 409 | name() = default; \ |
| 410 | name(const name&) = delete; \ |
| 411 | name(name&&) = delete; \ |
| 412 | name& operator=(const name&) = delete; \ |
| 413 | name& operator=(name&&) = delete; |
| 414 | |
| 415 | #define DOCTEST_DEFINE_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:415:9`!(name) \ |
| 416 | name::~name() = default; |
| 417 | |
| 418 | // internal macros for string concatenation and anonymous variable name generation |
| 419 | #define DOCTEST_CAT_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:419:9`!(s1, s2) s1##s2 |
| 420 | #define DOCTEST_CATcxx . . $ `tests/thirdparty/doctest/doctest.h:420:9`!(s1, s2) DOCTEST_CAT_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:419:9`!(s1, s2) |
| 421 | #ifdef __COUNTER__ // not standard and may be missing for some compilers |
| 422 | #define DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(x) DOCTEST_CATcxx . . $ `tests/thirdparty/doctest/doctest.h:420:9`!(x, __COUNTER__) |
| 423 | #else // __COUNTER__ |
| 424 | #define DOCTEST_ANONYMOUS(x) DOCTEST_CAT(x, __LINE__) |
| 425 | #endif // __COUNTER__ |
| 426 | |
| 427 | #ifndef DOCTEST_CONFIG_ASSERTION_PARAMETERS_BY_VALUE |
| 428 | #define DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(x) x& |
| 429 | #else // DOCTEST_CONFIG_ASSERTION_PARAMETERS_BY_VALUE |
| 430 | #define DOCTEST_REF_WRAP(x) x |
| 431 | #endif // DOCTEST_CONFIG_ASSERTION_PARAMETERS_BY_VALUE |
| 432 | |
| 433 | // not using __APPLE__ because... this is how Catch does it |
| 434 | #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED |
| 435 | #define DOCTEST_PLATFORM_MAC |
| 436 | #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED) |
| 437 | #define DOCTEST_PLATFORM_IPHONE |
| 438 | #elif defined(_WIN32) |
| 439 | #define DOCTEST_PLATFORM_WINDOWS |
| 440 | #elif defined(__wasi__) |
| 441 | #define DOCTEST_PLATFORM_WASI |
| 442 | #else // DOCTEST_PLATFORM |
| 443 | #define DOCTEST_PLATFORM_LINUXcxx . . $ `tests/thirdparty/doctest/doctest.h:443:9`! |
| 444 | #endif // DOCTEST_PLATFORM |
| 445 | |
| 446 | namespace doctestcxx . . $ doctest/ { namespace detailcxx . . $ doctest/detail/ { |
| 447 | static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! int consumecxx . . $ doctest/detail/consume(7d21cf11181745b8).(const int*, int) noexcept { return 0; } |
| 448 | }} |
| 449 | |
| 450 | #define DOCTEST_GLOBAL_NO_WARNINGScxx . . $ `tests/thirdparty/doctest/doctest.h:450:9`!(var, ...) \ |
| 451 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wglobal-constructors") \ |
| 452 | static const int var = doctest::detail::consume(&var, __VA_ARGS__); \ |
| 453 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 454 | |
| 455 | #ifndef DOCTEST_BREAK_INTO_DEBUGGER |
| 456 | // should probably take a look at https://github.com/scottt/debugbreak |
| 457 | #ifdef DOCTEST_PLATFORM_LINUXcxx . . $ `tests/thirdparty/doctest/doctest.h:443:9`! |
| 458 | #if defined(__GNUC__cxx . . $ `<built-in>:8:9`!) && (defined(__i386) || defined(__x86_64cxx . . $ `<built-in>:451:9`!)) |
| 459 | // Break at the location of the failing check if possible |
| 460 | #define DOCTEST_BREAK_INTO_DEBUGGERcxx . . $ `tests/thirdparty/doctest/doctest.h:460:9`!() __asm__("int $3\n" : :) // NOLINT(hicpp-no-assembler) |
| 461 | #else |
| 462 | #include <signal.h> |
| 463 | #define DOCTEST_BREAK_INTO_DEBUGGER() raise(SIGTRAP) |
| 464 | #endif |
| 465 | #elif defined(DOCTEST_PLATFORM_MAC) |
| 466 | #if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) || defined(__i386) |
| 467 | #define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("int $3\n" : :) // NOLINT(hicpp-no-assembler) |
| 468 | #elif defined(__ppc__) || defined(__ppc64__) |
| 469 | // https://www.cocoawithlove.com/2008/03/break-into-debugger.html |
| 470 | #define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n": : : "memory","r0","r3","r4") // NOLINT(hicpp-no-assembler) |
| 471 | #else |
| 472 | #define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("brk #0"); // NOLINT(hicpp-no-assembler) |
| 473 | #endif |
| 474 | #elif DOCTEST_MSVC |
| 475 | #define DOCTEST_BREAK_INTO_DEBUGGER() __debugbreak() |
| 476 | #elif defined(__MINGW32__) |
| 477 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wredundant-decls") |
| 478 | extern "C" __declspec(dllimport) void __stdcall DebugBreak(); |
| 479 | DOCTEST_GCC_SUPPRESS_WARNING_POP |
| 480 | #define DOCTEST_BREAK_INTO_DEBUGGER() ::DebugBreak() |
| 481 | #else // linux |
| 482 | #define DOCTEST_BREAK_INTO_DEBUGGER() (static_cast<void>(0)) |
| 483 | #endif // linux |
| 484 | #endif // DOCTEST_BREAK_INTO_DEBUGGER |
| 485 | |
| 486 | // this is kept here for backwards compatibility since the config option was changed |
| 487 | #ifdef DOCTEST_CONFIG_USE_IOSFWD |
| 488 | #ifndef DOCTEST_CONFIG_USE_STD_HEADERS |
| 489 | #define DOCTEST_CONFIG_USE_STD_HEADERS |
| 490 | #endif |
| 491 | #endif // DOCTEST_CONFIG_USE_IOSFWD |
| 492 | |
| 493 | // for clang - always include ciso646 (which drags some std stuff) because |
| 494 | // we want to check if we are using libc++ with the _LIBCPP_VERSION macro in |
| 495 | // which case we don't want to forward declare stuff from std - for reference: |
| 496 | // https://github.com/doctest/doctest/issues/126 |
| 497 | // https://github.com/doctest/doctest/issues/356 |
| 498 | #if DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! |
| 499 | #include <ciso646> |
| 500 | #endif // clang |
| 501 | |
| 502 | #ifdef _LIBCPP_VERSION |
| 503 | #ifndef DOCTEST_CONFIG_USE_STD_HEADERS |
| 504 | #define DOCTEST_CONFIG_USE_STD_HEADERS |
| 505 | #endif |
| 506 | #endif // _LIBCPP_VERSION |
| 507 | |
| 508 | #ifdef DOCTEST_CONFIG_USE_STD_HEADERS |
| 509 | #ifndef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 510 | #define DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 511 | #endif // DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 512 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN |
| 513 | #include <cstddef> |
| 514 | #include <ostream> |
| 515 | #include <istream> |
| 516 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END |
| 517 | #else // DOCTEST_CONFIG_USE_STD_HEADERS |
| 518 | |
| 519 | // Forward declaring 'X' in namespace std is not permitted by the C++ Standard. |
| 520 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4643) |
| 521 | |
| 522 | namespace stdcxx . . $ std/ { // NOLINT(cert-dcl58-cpp) |
| 523 | typedef decltype(nullptr) nullptr_tcxx . . $ std/nullptr_t#; // NOLINT(modernize-use-using) |
| 524 | typedef decltype(sizeof(void*)) size_tcxx . . $ std/size_t#; // NOLINT(modernize-use-using) |
| 525 | template <class charT> |
| 526 | struct char_traitscxx . . $ std/char_traits#; |
| 527 | template <> |
| 528 | struct char_traitscxx . . $ std/char_traits#<char>; |
| 529 | template <class charT, class traits> |
| 530 | class basic_ostreamcxx . . $ std/basic_ostream#; // NOLINT(fuchsia-virtual-inheritance) |
| 531 | typedef basic_ostreamcxx . . $ std/basic_ostream#<char, char_traitscxx . . $ std/char_traits#<char>> ostreamcxx . . $ std/ostream#; // NOLINT(modernize-use-using) |
| 532 | template<class traits> |
| 533 | // NOLINTNEXTLINE |
| 534 | basic_ostreamcxx . . $ std/basic_ostream#<char, traits>& operatorcxx . . $ std/`operator<<`(efaf8c13fc75f3c7).<<(basic_ostreamcxx . . $ std/basic_ostream#<char, traits>&, const char*); |
| 535 | template <class charT, class traits> |
| 536 | class basic_istreamcxx . . $ std/basic_istream#; |
| 537 | typedef basic_istreamcxx . . $ std/basic_istream#<char, char_traitscxx . . $ std/char_traits#<char>> istreamcxx . . $ std/istream#; // NOLINT(modernize-use-using) |
| 538 | template <class... Types> |
| 539 | class tuplecxx . . $ std/tuple#; |
| 540 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! >= DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(19, 20, 0) |
| 541 | // see this issue on why this is needed: https://github.com/doctest/doctest/issues/183 |
| 542 | template <class Ty> |
| 543 | class allocator; |
| 544 | template <class Elem, class Traits, class Alloc> |
| 545 | class basic_string; |
| 546 | using string = basic_string<char, char_traits<char>, allocator<char>>; |
| 547 | #endif // VS 2019 |
| 548 | } // namespace std |
| 549 | |
| 550 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 551 | |
| 552 | #endif // DOCTEST_CONFIG_USE_STD_HEADERS |
| 553 | |
| 554 | #ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 555 | #include <type_traits> |
| 556 | #endif // DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 557 | |
| 558 | namespace doctestcxx . . $ doctest/ { |
| 559 | |
| 560 | using stdcxx . . $ std/::size_tcxx . . $ doctest/size_t#; |
| 561 | |
| 562 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! extern bool is_running_in_testcxx . . $ doctest/is_running_in_test.; |
| 563 | |
| 564 | #ifndef DOCTEST_CONFIG_STRING_SIZE_TYPE |
| 565 | #define DOCTEST_CONFIG_STRING_SIZE_TYPEcxx . . $ `tests/thirdparty/doctest/doctest.h:565:9`! unsigned |
| 566 | #endif |
| 567 | |
| 568 | // A 24 byte string class (can be as small as 17 for x64 and 13 for x86) that can hold strings with length |
| 569 | // of up to 23 chars on the stack before going on the heap - the last byte of the buffer is used for: |
| 570 | // - "is small" bit - the highest bit - if "0" then it is small - otherwise its "1" (128) |
| 571 | // - if small - capacity left before going on the heap - using the lowest 5 bits |
| 572 | // - if small - 2 bits are left unused - the second and third highest ones |
| 573 | // - if small - acts as a null terminator if strlen() is 23 (24 including the null terminator) |
| 574 | // and the "is small" bit remains "0" ("as well as the capacity left") so its OK |
| 575 | // Idea taken from this lecture about the string implementation of facebook/folly - fbstring |
| 576 | // https://www.youtube.com/watch?v=kPR8h4-qZdk |
| 577 | // TODO: |
| 578 | // - optimizations - like not deleting memory unnecessarily in operator= and etc. |
| 579 | // - resize/reserve/clear |
| 580 | // - replace |
| 581 | // - back/front |
| 582 | // - iterator stuff |
| 583 | // - find & friends |
| 584 | // - push_back/pop_back |
| 585 | // - assign/insert/erase |
| 586 | // - relational operators as free functions - taking const char* as one of the params |
| 587 | class DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# |
| 588 | { |
| 589 | public: |
| 590 | using size_typecxx . . $ doctest/String#size_type# = DOCTEST_CONFIG_STRING_SIZE_TYPEcxx . . $ `tests/thirdparty/doctest/doctest.h:565:9`!; |
| 591 | |
| 592 | private: |
| 593 | static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! size_typecxx . . $ doctest/String#size_type# lencxx . . $ doctest/String#len. = 24; //!OCLINT avoid private static members |
| 594 | static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! size_typecxx . . $ doctest/String#size_type# lastcxx . . $ doctest/String#last. = lencxx . . $ doctest/String#len. - 1; //!OCLINT avoid private static members |
| 595 | |
| 596 | struct viewcxx . . $ doctest/String#view# // len should be more than sizeof(view) - because of the final byte for flags |
| 597 | { |
| 598 | char* ptrcxx . . $ doctest/String#view#ptr.; |
| 599 | size_typecxx . . $ doctest/String#size_type# sizecxx . . $ doctest/String#view#size.; |
| 600 | size_typecxx . . $ doctest/String#size_type# capacitycxx . . $ doctest/String#view#capacity.; |
| 601 | }; |
| 602 | |
| 603 | unioncxx . . $ doctest/String#$anonymous_type_0# |
| 604 | { |
| 605 | char bufcxx . . $ doctest/String#$anonymous_type_0#buf.[lencxx . . $ doctest/String#len.]; // NOLINT(*-avoid-c-arrays) |
| 606 | viewcxx . . $ doctest/String#view# datacxx . . $ doctest/String#$anonymous_type_0#data.; |
| 607 | }; |
| 608 | |
| 609 | char* allocatecxx . . $ doctest/String#allocate(f109d7e0a0ca42b3).(size_typecxx . . $ doctest/String#size_type# sz); |
| 610 | |
| 611 | bool isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).() const noexcept { return (bufcxx . . $ doctest/String#$anonymous_type_0#buf.[lastcxx . . $ doctest/String#last.] & 128) == 0; } |
| 612 | void setOnHeapcxx . . $ doctest/String#setOnHeap(ced63f7c635d850d).() noexcept; |
| 613 | void setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(size_typecxx . . $ doctest/String#size_type# in = lastcxx . . $ doctest/String#last.) noexcept; |
| 614 | void setSizecxx . . $ doctest/String#setSize(6bab9b75950d6f3).(size_typecxx . . $ doctest/String#size_type# sz) noexcept; |
| 615 | |
| 616 | void copycxx . . $ doctest/String#copy(895223ef195a8629).(const Stringcxx . . $ doctest/String#& other); |
| 617 | |
| 618 | public: |
| 619 | static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! size_typecxx . . $ doctest/String#size_type# nposcxx . . $ doctest/String#npos. = static_cast<size_typecxx . . $ doctest/String#size_type#>(-1); |
| 620 | |
| 621 | Stringcxx . . $ doctest/String#String(ced63f7c635d850d).() noexcept; |
| 622 | ~cxx . . $ doctest/String#`~String`(ced63f7c635d850d).Stringcxx . . $ doctest/String#(); |
| 623 | |
| 624 | // cppcheck-suppress noExplicitConstructor |
| 625 | Stringcxx . . $ doctest/String#String(85c52e162fed56f9).(const char* in); |
| 626 | Stringcxx . . $ doctest/String#String(b51963283f2467a4).(const char* in, size_typecxx . . $ doctest/String#size_type# in_size); |
| 627 | |
| 628 | Stringcxx . . $ doctest/String#String(dc1b52b9d2bd778f).(stdcxx . . $ std/::istreamcxx . . $ std/istream#& in, size_typecxx . . $ doctest/String#size_type# in_size); |
| 629 | |
| 630 | Stringcxx . . $ doctest/String#String(895223ef195a8629).(const Stringcxx . . $ doctest/String#& other); |
| 631 | Stringcxx . . $ doctest/String#& operatorcxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e).=(const Stringcxx . . $ doctest/String#& other); |
| 632 | |
| 633 | Stringcxx . . $ doctest/String#& operatorcxx . . $ doctest/String#`operator+=`(7a57cc89010f9d7e).+=(const Stringcxx . . $ doctest/String#& other); |
| 634 | |
| 635 | Stringcxx . . $ doctest/String#String(d76cbb63cd3dec44).(Stringcxx . . $ doctest/String#&& other) noexcept; |
| 636 | Stringcxx . . $ doctest/String#& operatorcxx . . $ doctest/String#`operator=`(35ff499bf129e9c0).=(Stringcxx . . $ doctest/String#&& other) noexcept; |
| 637 | |
| 638 | char operatorcxx . . $ doctest/String#`operator[]`(79e595215a5a5637).[](size_typecxx . . $ doctest/String#size_type# i) const; |
| 639 | char& operatorcxx . . $ doctest/String#`operator[]`(584c111b47189dd).[](size_typecxx . . $ doctest/String#size_type# i); |
| 640 | |
| 641 | // the only functions I'm willing to leave in the interface - available for inlining |
| 642 | const char* c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).() const { return const_cast<Stringcxx . . $ doctest/String#*>(this)->c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); } // NOLINT |
| 643 | char* c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).() { |
| 644 | if (isOnStackcxx . . $ doctest/String#isOnStack(50ce9a9e25b4a850).()) { |
| 645 | return reinterpret_cast<char*>(bufcxx . . $ doctest/String#$anonymous_type_0#buf.); |
| 646 | } |
| 647 | return datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.; |
| 648 | } |
| 649 | |
| 650 | size_typecxx . . $ doctest/String#size_type# sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).() const; |
| 651 | size_typecxx . . $ doctest/String#size_type# capacitycxx . . $ doctest/String#capacity(ddd8539a2fcdd4ce).() const; |
| 652 | |
| 653 | Stringcxx . . $ doctest/String# substrcxx . . $ doctest/String#substr(6446a019ca443405).(size_typecxx . . $ doctest/String#size_type# pos, size_typecxx . . $ doctest/String#size_type# cnt = nposcxx . . $ doctest/String#npos.) &&; |
| 654 | Stringcxx . . $ doctest/String# substrcxx . . $ doctest/String#substr(f9da8990705ceeec).(size_typecxx . . $ doctest/String#size_type# pos, size_typecxx . . $ doctest/String#size_type# cnt = nposcxx . . $ doctest/String#npos.) const &; |
| 655 | |
| 656 | size_typecxx . . $ doctest/String#size_type# findcxx . . $ doctest/String#find(8888c36a42ab742a).(char ch, size_typecxx . . $ doctest/String#size_type# pos = 0) const; |
| 657 | size_typecxx . . $ doctest/String#size_type# rfindcxx . . $ doctest/String#rfind(8888c36a42ab742a).(char ch, size_typecxx . . $ doctest/String#size_type# pos = nposcxx . . $ doctest/String#npos.) const; |
| 658 | |
| 659 | int comparecxx . . $ doctest/String#compare(cd33d590a1eff847).(const char* other, bool no_case = false) const; |
| 660 | int comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(const Stringcxx . . $ doctest/String#& other, bool no_case = false) const; |
| 661 | |
| 662 | friend DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/`operator<<`(5bde827599dcb38d).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& s, const Stringcxx . . $ doctest/String#& in); |
| 663 | }; |
| 664 | |
| 665 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# operatorcxx . . $ doctest/operator+(670c5a04c572f3f0).+(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 666 | |
| 667 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator==`(d6e8d493c6efe0c6).==(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 668 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator!=`(d6e8d493c6efe0c6).!=(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 669 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator<`(d6e8d493c6efe0c6).<(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 670 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator>`(d6e8d493c6efe0c6).>(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 671 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator<=`(d6e8d493c6efe0c6).<=(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 672 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator>=`(d6e8d493c6efe0c6).>=(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 673 | |
| 674 | class DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Containscxx . . $ doctest/Contains# { |
| 675 | public: |
| 676 | explicit Containscxx . . $ doctest/Contains#Contains(895223ef195a8629).(const Stringcxx . . $ doctest/String#& string); |
| 677 | |
| 678 | bool checkWithcxx . . $ doctest/Contains#checkWith(93a6d14c73fd6414).(const Stringcxx . . $ doctest/String#& other) const; |
| 679 | |
| 680 | Stringcxx . . $ doctest/String# stringcxx . . $ doctest/Contains#string.; |
| 681 | }; |
| 682 | |
| 683 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(d29021b6de6836f0).(const Containscxx . . $ doctest/Contains#& in); |
| 684 | |
| 685 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator==`(91470ad91e5cc952).==(const Stringcxx . . $ doctest/String#& lhs, const Containscxx . . $ doctest/Contains#& rhs); |
| 686 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator==`(f038f1112a1023e2).==(const Containscxx . . $ doctest/Contains#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 687 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator!=`(91470ad91e5cc952).!=(const Stringcxx . . $ doctest/String#& lhs, const Containscxx . . $ doctest/Contains#& rhs); |
| 688 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool operatorcxx . . $ doctest/`operator!=`(f038f1112a1023e2).!=(const Containscxx . . $ doctest/Contains#& lhs, const Stringcxx . . $ doctest/String#& rhs); |
| 689 | |
| 690 | namespace Colorcxx . . $ doctest/Color/ { |
| 691 | enum Enumcxx . . $ doctest/Color/Enum# |
| 692 | { |
| 693 | Nonecxx . . $ doctest/Color/None. = 0, |
| 694 | Whitecxx . . $ doctest/Color/White., |
| 695 | Redcxx . . $ doctest/Color/Red., |
| 696 | Greencxx . . $ doctest/Color/Green., |
| 697 | Bluecxx . . $ doctest/Color/Blue., |
| 698 | Cyancxx . . $ doctest/Color/Cyan., |
| 699 | Yellowcxx . . $ doctest/Color/Yellow., |
| 700 | Greycxx . . $ doctest/Color/Grey., |
| 701 | |
| 702 | Brightcxx . . $ doctest/Color/Bright. = 0x10, |
| 703 | |
| 704 | BrightRedcxx . . $ doctest/Color/BrightRed. = Brightcxx . . $ doctest/Color/Bright. | Redcxx . . $ doctest/Color/Red., |
| 705 | BrightGreencxx . . $ doctest/Color/BrightGreen. = Brightcxx . . $ doctest/Color/Bright. | Greencxx . . $ doctest/Color/Green., |
| 706 | LightGreycxx . . $ doctest/Color/LightGrey. = Brightcxx . . $ doctest/Color/Bright. | Greycxx . . $ doctest/Color/Grey., |
| 707 | BrightWhitecxx . . $ doctest/Color/BrightWhite. = Brightcxx . . $ doctest/Color/Bright. | Whitecxx . . $ doctest/Color/White. |
| 708 | }; |
| 709 | |
| 710 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& s, Colorcxx . . $ doctest/Color/::Enumcxx . . $ doctest/Color/Enum# code); |
| 711 | } // namespace Color |
| 712 | |
| 713 | namespace assertTypecxx . . $ doctest/assertType/ { |
| 714 | enum Enumcxx . . $ doctest/assertType/Enum# |
| 715 | { |
| 716 | // macro traits |
| 717 | |
| 718 | is_warncxx . . $ doctest/assertType/is_warn. = 1, |
| 719 | is_checkcxx . . $ doctest/assertType/is_check. = 2 * is_warncxx . . $ doctest/assertType/is_warn., |
| 720 | is_requirecxx . . $ doctest/assertType/is_require. = 2 * is_checkcxx . . $ doctest/assertType/is_check., |
| 721 | |
| 722 | is_normalcxx . . $ doctest/assertType/is_normal. = 2 * is_requirecxx . . $ doctest/assertType/is_require., |
| 723 | is_throwscxx . . $ doctest/assertType/is_throws. = 2 * is_normalcxx . . $ doctest/assertType/is_normal., |
| 724 | is_throws_ascxx . . $ doctest/assertType/is_throws_as. = 2 * is_throwscxx . . $ doctest/assertType/is_throws., |
| 725 | is_throws_withcxx . . $ doctest/assertType/is_throws_with. = 2 * is_throws_ascxx . . $ doctest/assertType/is_throws_as., |
| 726 | is_nothrowcxx . . $ doctest/assertType/is_nothrow. = 2 * is_throws_withcxx . . $ doctest/assertType/is_throws_with., |
| 727 | |
| 728 | is_falsecxx . . $ doctest/assertType/is_false. = 2 * is_nothrowcxx . . $ doctest/assertType/is_nothrow., |
| 729 | is_unarycxx . . $ doctest/assertType/is_unary. = 2 * is_falsecxx . . $ doctest/assertType/is_false., // not checked anywhere - used just to distinguish the types |
| 730 | |
| 731 | is_eqcxx . . $ doctest/assertType/is_eq. = 2 * is_unarycxx . . $ doctest/assertType/is_unary., |
| 732 | is_necxx . . $ doctest/assertType/is_ne. = 2 * is_eqcxx . . $ doctest/assertType/is_eq., |
| 733 | |
| 734 | is_ltcxx . . $ doctest/assertType/is_lt. = 2 * is_necxx . . $ doctest/assertType/is_ne., |
| 735 | is_gtcxx . . $ doctest/assertType/is_gt. = 2 * is_ltcxx . . $ doctest/assertType/is_lt., |
| 736 | |
| 737 | is_gecxx . . $ doctest/assertType/is_ge. = 2 * is_gtcxx . . $ doctest/assertType/is_gt., |
| 738 | is_lecxx . . $ doctest/assertType/is_le. = 2 * is_gecxx . . $ doctest/assertType/is_ge., |
| 739 | |
| 740 | // macro types |
| 741 | |
| 742 | DT_WARNcxx . . $ doctest/assertType/DT_WARN. = is_normalcxx . . $ doctest/assertType/is_normal. | is_warncxx . . $ doctest/assertType/is_warn., |
| 743 | DT_CHECKcxx . . $ doctest/assertType/DT_CHECK. = is_normalcxx . . $ doctest/assertType/is_normal. | is_checkcxx . . $ doctest/assertType/is_check., |
| 744 | DT_REQUIREcxx . . $ doctest/assertType/DT_REQUIRE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_requirecxx . . $ doctest/assertType/is_require., |
| 745 | |
| 746 | DT_WARN_FALSEcxx . . $ doctest/assertType/DT_WARN_FALSE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_falsecxx . . $ doctest/assertType/is_false. | is_warncxx . . $ doctest/assertType/is_warn., |
| 747 | DT_CHECK_FALSEcxx . . $ doctest/assertType/DT_CHECK_FALSE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_falsecxx . . $ doctest/assertType/is_false. | is_checkcxx . . $ doctest/assertType/is_check., |
| 748 | DT_REQUIRE_FALSEcxx . . $ doctest/assertType/DT_REQUIRE_FALSE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_falsecxx . . $ doctest/assertType/is_false. | is_requirecxx . . $ doctest/assertType/is_require., |
| 749 | |
| 750 | DT_WARN_THROWScxx . . $ doctest/assertType/DT_WARN_THROWS. = is_throwscxx . . $ doctest/assertType/is_throws. | is_warncxx . . $ doctest/assertType/is_warn., |
| 751 | DT_CHECK_THROWScxx . . $ doctest/assertType/DT_CHECK_THROWS. = is_throwscxx . . $ doctest/assertType/is_throws. | is_checkcxx . . $ doctest/assertType/is_check., |
| 752 | DT_REQUIRE_THROWScxx . . $ doctest/assertType/DT_REQUIRE_THROWS. = is_throwscxx . . $ doctest/assertType/is_throws. | is_requirecxx . . $ doctest/assertType/is_require., |
| 753 | |
| 754 | DT_WARN_THROWS_AScxx . . $ doctest/assertType/DT_WARN_THROWS_AS. = is_throws_ascxx . . $ doctest/assertType/is_throws_as. | is_warncxx . . $ doctest/assertType/is_warn., |
| 755 | DT_CHECK_THROWS_AScxx . . $ doctest/assertType/DT_CHECK_THROWS_AS. = is_throws_ascxx . . $ doctest/assertType/is_throws_as. | is_checkcxx . . $ doctest/assertType/is_check., |
| 756 | DT_REQUIRE_THROWS_AScxx . . $ doctest/assertType/DT_REQUIRE_THROWS_AS. = is_throws_ascxx . . $ doctest/assertType/is_throws_as. | is_requirecxx . . $ doctest/assertType/is_require., |
| 757 | |
| 758 | DT_WARN_THROWS_WITHcxx . . $ doctest/assertType/DT_WARN_THROWS_WITH. = is_throws_withcxx . . $ doctest/assertType/is_throws_with. | is_warncxx . . $ doctest/assertType/is_warn., |
| 759 | DT_CHECK_THROWS_WITHcxx . . $ doctest/assertType/DT_CHECK_THROWS_WITH. = is_throws_withcxx . . $ doctest/assertType/is_throws_with. | is_checkcxx . . $ doctest/assertType/is_check., |
| 760 | DT_REQUIRE_THROWS_WITHcxx . . $ doctest/assertType/DT_REQUIRE_THROWS_WITH. = is_throws_withcxx . . $ doctest/assertType/is_throws_with. | is_requirecxx . . $ doctest/assertType/is_require., |
| 761 | |
| 762 | DT_WARN_THROWS_WITH_AScxx . . $ doctest/assertType/DT_WARN_THROWS_WITH_AS. = is_throws_withcxx . . $ doctest/assertType/is_throws_with. | is_throws_ascxx . . $ doctest/assertType/is_throws_as. | is_warncxx . . $ doctest/assertType/is_warn., |
| 763 | DT_CHECK_THROWS_WITH_AScxx . . $ doctest/assertType/DT_CHECK_THROWS_WITH_AS. = is_throws_withcxx . . $ doctest/assertType/is_throws_with. | is_throws_ascxx . . $ doctest/assertType/is_throws_as. | is_checkcxx . . $ doctest/assertType/is_check., |
| 764 | DT_REQUIRE_THROWS_WITH_AScxx . . $ doctest/assertType/DT_REQUIRE_THROWS_WITH_AS. = is_throws_withcxx . . $ doctest/assertType/is_throws_with. | is_throws_ascxx . . $ doctest/assertType/is_throws_as. | is_requirecxx . . $ doctest/assertType/is_require., |
| 765 | |
| 766 | DT_WARN_NOTHROWcxx . . $ doctest/assertType/DT_WARN_NOTHROW. = is_nothrowcxx . . $ doctest/assertType/is_nothrow. | is_warncxx . . $ doctest/assertType/is_warn., |
| 767 | DT_CHECK_NOTHROWcxx . . $ doctest/assertType/DT_CHECK_NOTHROW. = is_nothrowcxx . . $ doctest/assertType/is_nothrow. | is_checkcxx . . $ doctest/assertType/is_check., |
| 768 | DT_REQUIRE_NOTHROWcxx . . $ doctest/assertType/DT_REQUIRE_NOTHROW. = is_nothrowcxx . . $ doctest/assertType/is_nothrow. | is_requirecxx . . $ doctest/assertType/is_require., |
| 769 | |
| 770 | DT_WARN_EQcxx . . $ doctest/assertType/DT_WARN_EQ. = is_normalcxx . . $ doctest/assertType/is_normal. | is_eqcxx . . $ doctest/assertType/is_eq. | is_warncxx . . $ doctest/assertType/is_warn., |
| 771 | DT_CHECK_EQcxx . . $ doctest/assertType/DT_CHECK_EQ. = is_normalcxx . . $ doctest/assertType/is_normal. | is_eqcxx . . $ doctest/assertType/is_eq. | is_checkcxx . . $ doctest/assertType/is_check., |
| 772 | DT_REQUIRE_EQcxx . . $ doctest/assertType/DT_REQUIRE_EQ. = is_normalcxx . . $ doctest/assertType/is_normal. | is_eqcxx . . $ doctest/assertType/is_eq. | is_requirecxx . . $ doctest/assertType/is_require., |
| 773 | |
| 774 | DT_WARN_NEcxx . . $ doctest/assertType/DT_WARN_NE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_necxx . . $ doctest/assertType/is_ne. | is_warncxx . . $ doctest/assertType/is_warn., |
| 775 | DT_CHECK_NEcxx . . $ doctest/assertType/DT_CHECK_NE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_necxx . . $ doctest/assertType/is_ne. | is_checkcxx . . $ doctest/assertType/is_check., |
| 776 | DT_REQUIRE_NEcxx . . $ doctest/assertType/DT_REQUIRE_NE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_necxx . . $ doctest/assertType/is_ne. | is_requirecxx . . $ doctest/assertType/is_require., |
| 777 | |
| 778 | DT_WARN_GTcxx . . $ doctest/assertType/DT_WARN_GT. = is_normalcxx . . $ doctest/assertType/is_normal. | is_gtcxx . . $ doctest/assertType/is_gt. | is_warncxx . . $ doctest/assertType/is_warn., |
| 779 | DT_CHECK_GTcxx . . $ doctest/assertType/DT_CHECK_GT. = is_normalcxx . . $ doctest/assertType/is_normal. | is_gtcxx . . $ doctest/assertType/is_gt. | is_checkcxx . . $ doctest/assertType/is_check., |
| 780 | DT_REQUIRE_GTcxx . . $ doctest/assertType/DT_REQUIRE_GT. = is_normalcxx . . $ doctest/assertType/is_normal. | is_gtcxx . . $ doctest/assertType/is_gt. | is_requirecxx . . $ doctest/assertType/is_require., |
| 781 | |
| 782 | DT_WARN_LTcxx . . $ doctest/assertType/DT_WARN_LT. = is_normalcxx . . $ doctest/assertType/is_normal. | is_ltcxx . . $ doctest/assertType/is_lt. | is_warncxx . . $ doctest/assertType/is_warn., |
| 783 | DT_CHECK_LTcxx . . $ doctest/assertType/DT_CHECK_LT. = is_normalcxx . . $ doctest/assertType/is_normal. | is_ltcxx . . $ doctest/assertType/is_lt. | is_checkcxx . . $ doctest/assertType/is_check., |
| 784 | DT_REQUIRE_LTcxx . . $ doctest/assertType/DT_REQUIRE_LT. = is_normalcxx . . $ doctest/assertType/is_normal. | is_ltcxx . . $ doctest/assertType/is_lt. | is_requirecxx . . $ doctest/assertType/is_require., |
| 785 | |
| 786 | DT_WARN_GEcxx . . $ doctest/assertType/DT_WARN_GE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_gecxx . . $ doctest/assertType/is_ge. | is_warncxx . . $ doctest/assertType/is_warn., |
| 787 | DT_CHECK_GEcxx . . $ doctest/assertType/DT_CHECK_GE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_gecxx . . $ doctest/assertType/is_ge. | is_checkcxx . . $ doctest/assertType/is_check., |
| 788 | DT_REQUIRE_GEcxx . . $ doctest/assertType/DT_REQUIRE_GE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_gecxx . . $ doctest/assertType/is_ge. | is_requirecxx . . $ doctest/assertType/is_require., |
| 789 | |
| 790 | DT_WARN_LEcxx . . $ doctest/assertType/DT_WARN_LE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_lecxx . . $ doctest/assertType/is_le. | is_warncxx . . $ doctest/assertType/is_warn., |
| 791 | DT_CHECK_LEcxx . . $ doctest/assertType/DT_CHECK_LE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_lecxx . . $ doctest/assertType/is_le. | is_checkcxx . . $ doctest/assertType/is_check., |
| 792 | DT_REQUIRE_LEcxx . . $ doctest/assertType/DT_REQUIRE_LE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_lecxx . . $ doctest/assertType/is_le. | is_requirecxx . . $ doctest/assertType/is_require., |
| 793 | |
| 794 | DT_WARN_UNARYcxx . . $ doctest/assertType/DT_WARN_UNARY. = is_normalcxx . . $ doctest/assertType/is_normal. | is_unarycxx . . $ doctest/assertType/is_unary. | is_warncxx . . $ doctest/assertType/is_warn., |
| 795 | DT_CHECK_UNARYcxx . . $ doctest/assertType/DT_CHECK_UNARY. = is_normalcxx . . $ doctest/assertType/is_normal. | is_unarycxx . . $ doctest/assertType/is_unary. | is_checkcxx . . $ doctest/assertType/is_check., |
| 796 | DT_REQUIRE_UNARYcxx . . $ doctest/assertType/DT_REQUIRE_UNARY. = is_normalcxx . . $ doctest/assertType/is_normal. | is_unarycxx . . $ doctest/assertType/is_unary. | is_requirecxx . . $ doctest/assertType/is_require., |
| 797 | |
| 798 | DT_WARN_UNARY_FALSEcxx . . $ doctest/assertType/DT_WARN_UNARY_FALSE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_falsecxx . . $ doctest/assertType/is_false. | is_unarycxx . . $ doctest/assertType/is_unary. | is_warncxx . . $ doctest/assertType/is_warn., |
| 799 | DT_CHECK_UNARY_FALSEcxx . . $ doctest/assertType/DT_CHECK_UNARY_FALSE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_falsecxx . . $ doctest/assertType/is_false. | is_unarycxx . . $ doctest/assertType/is_unary. | is_checkcxx . . $ doctest/assertType/is_check., |
| 800 | DT_REQUIRE_UNARY_FALSEcxx . . $ doctest/assertType/DT_REQUIRE_UNARY_FALSE. = is_normalcxx . . $ doctest/assertType/is_normal. | is_falsecxx . . $ doctest/assertType/is_false. | is_unarycxx . . $ doctest/assertType/is_unary. | is_requirecxx . . $ doctest/assertType/is_require., |
| 801 | }; |
| 802 | } // namespace assertType |
| 803 | |
| 804 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! const char* assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at); |
| 805 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! const char* failureStringcxx . . $ doctest/failureString(90cddebe9d4cd0df).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at); |
| 806 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! const char* skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(const char* file); |
| 807 | |
| 808 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestCaseDatacxx . . $ doctest/TestCaseData# |
| 809 | { |
| 810 | Stringcxx . . $ doctest/String# m_filecxx . . $ doctest/TestCaseData#m_file.; // the file in which the test was registered (using String - see #350) |
| 811 | unsigned m_linecxx . . $ doctest/TestCaseData#m_line.; // the line where the test was registered |
| 812 | const char* m_namecxx . . $ doctest/TestCaseData#m_name.; // name of the test case |
| 813 | const char* m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.; // the test suite in which the test was added |
| 814 | const char* m_descriptioncxx . . $ doctest/TestCaseData#m_description.; |
| 815 | bool m_skipcxx . . $ doctest/TestCaseData#m_skip.; |
| 816 | bool m_no_breakscxx . . $ doctest/TestCaseData#m_no_breaks.; |
| 817 | bool m_no_outputcxx . . $ doctest/TestCaseData#m_no_output.; |
| 818 | bool m_may_failcxx . . $ doctest/TestCaseData#m_may_fail.; |
| 819 | bool m_should_failcxx . . $ doctest/TestCaseData#m_should_fail.; |
| 820 | int m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures.; |
| 821 | double m_timeoutcxx . . $ doctest/TestCaseData#m_timeout.; |
| 822 | }; |
| 823 | |
| 824 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! AssertDatacxx . . $ doctest/AssertData# |
| 825 | { |
| 826 | // common - for all asserts |
| 827 | const TestCaseDatacxx . . $ doctest/TestCaseData#* m_test_casecxx . . $ doctest/AssertData#m_test_case.; |
| 828 | assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# m_atcxx . . $ doctest/AssertData#m_at.; |
| 829 | const char* m_filecxx . . $ doctest/AssertData#m_file.; |
| 830 | int m_linecxx . . $ doctest/AssertData#m_line.; |
| 831 | const char* m_exprcxx . . $ doctest/AssertData#m_expr.; |
| 832 | bool m_failedcxx . . $ doctest/AssertData#m_failed.; |
| 833 | |
| 834 | // exception-related - for all asserts |
| 835 | bool m_threwcxx . . $ doctest/AssertData#m_threw.; |
| 836 | Stringcxx . . $ doctest/String# m_exceptioncxx . . $ doctest/AssertData#m_exception.; |
| 837 | |
| 838 | // for normal asserts |
| 839 | Stringcxx . . $ doctest/String# m_decompcxx . . $ doctest/AssertData#m_decomp.; |
| 840 | |
| 841 | // for specific exception-related asserts |
| 842 | bool m_threw_ascxx . . $ doctest/AssertData#m_threw_as.; |
| 843 | const char* m_exception_typecxx . . $ doctest/AssertData#m_exception_type.; |
| 844 | |
| 845 | class DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! StringContainscxx . . $ doctest/AssertData#StringContains# { |
| 846 | private: |
| 847 | Containscxx . . $ doctest/Contains# contentcxx . . $ doctest/AssertData#StringContains#content.; |
| 848 | bool isContainscxx . . $ doctest/AssertData#StringContains#isContains.; |
| 849 | |
| 850 | public: |
| 851 | StringContainscxx . . $ doctest/AssertData#StringContains#StringContains(895223ef195a8629).(const Stringcxx . . $ doctest/String#& str) : contentcxx . . $ doctest/Contains#Contains(895223ef195a8629).(str), isContainscxx . . $ doctest/AssertData#StringContains#isContains.(false) { } |
| 852 | StringContainscxx . . $ doctest/AssertData#StringContains#StringContains(6017785824d0447).(Containscxx . . $ doctest/Contains# cntn) : contentcxx . . $ doctest/AssertData#StringContains#content.(static_cast<Containscxx . . $ doctest/Contains#&&>(cntn)), isContainscxx . . $ doctest/AssertData#StringContains#isContains.(true) { } |
| 853 | |
| 854 | bool checkcxx . . $ doctest/AssertData#StringContains#check(5730efa7de1cae3f).(const Stringcxx . . $ doctest/String#& str) { return isContainscxx . . $ doctest/AssertData#StringContains#isContains. ? (contentcxx . . $ doctest/AssertData#StringContains#content. ==cxx . . $ doctest/`operator==`(f038f1112a1023e2). str) : (contentcxx . . $ doctest/AssertData#StringContains#content..stringcxx . . $ doctest/Contains#string. ==cxx . . $ doctest/`operator==`(d6e8d493c6efe0c6). str); } |
| 855 | |
| 856 | operatorcxx . . $ doctest/AssertData#StringContains#`operator const doctest::String &`(490ae2c941c34760). const Stringcxx . . $ doctest/String#&() const { return contentcxx . . $ doctest/AssertData#StringContains#content..stringcxx . . $ doctest/Contains#string.; } |
| 857 | |
| 858 | const char* c_strcxx . . $ doctest/AssertData#StringContains#c_str(a9f41ea0e82d88cf).() const { return contentcxx . . $ doctest/AssertData#StringContains#content..stringcxx . . $ doctest/Contains#string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(); } |
| 859 | } m_exception_stringcxx . . $ doctest/AssertData#m_exception_string.; |
| 860 | |
| 861 | AssertDatacxx . . $ doctest/AssertData#AssertData(8216d09cf610bec).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 862 | const char* exception_type, const StringContainscxx . . $ doctest/AssertData#StringContains#& exception_string); |
| 863 | }; |
| 864 | |
| 865 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! MessageDatacxx . . $ doctest/MessageData# |
| 866 | { |
| 867 | Stringcxx . . $ doctest/String# m_stringcxx . . $ doctest/MessageData#m_string.; |
| 868 | const char* m_filecxx . . $ doctest/MessageData#m_file.; |
| 869 | int m_linecxx . . $ doctest/MessageData#m_line.; |
| 870 | assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# m_severitycxx . . $ doctest/MessageData#m_severity.; |
| 871 | }; |
| 872 | |
| 873 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! SubcaseSignaturecxx . . $ doctest/SubcaseSignature# |
| 874 | { |
| 875 | Stringcxx . . $ doctest/String# m_namecxx . . $ doctest/SubcaseSignature#m_name.; |
| 876 | const char* m_filecxx . . $ doctest/SubcaseSignature#m_file.; |
| 877 | int m_linecxx . . $ doctest/SubcaseSignature#m_line.; |
| 878 | |
| 879 | bool operatorcxx . . $ doctest/SubcaseSignature#`operator==`(8edd893d954f3f8).==(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& other) const; |
| 880 | bool operatorcxx . . $ doctest/SubcaseSignature#`operator<`(8edd893d954f3f8).<(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& other) const; |
| 881 | }; |
| 882 | |
| 883 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! IContextScopecxx . . $ doctest/IContextScope# |
| 884 | { |
| 885 | DOCTEST_DECLARE_INTERFACEcxx . . $ doctest/IContextScope#(IContextScope) |
| 886 | virtual void stringifycxx . . $ doctest/IContextScope#stringify(7b1875f5045e6781).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#*) const = 0; |
| 887 | }; |
| 888 | |
| 889 | namespace detailcxx . . $ doctest/detail/ { |
| 890 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestCasecxx . . $ doctest/detail/TestCase#; |
| 891 | } // namespace detail |
| 892 | |
| 893 | struct ContextOptionscxx . . $ doctest/ContextOptions# //!OCLINT too many fields |
| 894 | { |
| 895 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* coutcxx . . $ doctest/ContextOptions#cout. = nullptr; // stdout stream |
| 896 | Stringcxx . . $ doctest/String# binary_namecxx . . $ doctest/ContextOptions#binary_name.; // the test binary name |
| 897 | |
| 898 | const detailcxx . . $ doctest/detail/::TestCasecxx . . $ doctest/detail/TestCase#* currentTestcxx . . $ doctest/ContextOptions#currentTest. = nullptr; |
| 899 | |
| 900 | // == parameters from the command line |
| 901 | Stringcxx . . $ doctest/String# outcxx . . $ doctest/ContextOptions#out.; // output filename |
| 902 | Stringcxx . . $ doctest/String# order_bycxx . . $ doctest/ContextOptions#order_by.; // how tests should be ordered |
| 903 | unsigned rand_seedcxx . . $ doctest/ContextOptions#rand_seed.; // the seed for rand ordering |
| 904 | |
| 905 | unsigned firstcxx . . $ doctest/ContextOptions#first.; // the first (matching) test to be executed |
| 906 | unsigned lastcxx . . $ doctest/ContextOptions#last.; // the last (matching) test to be executed |
| 907 | |
| 908 | int abort_aftercxx . . $ doctest/ContextOptions#abort_after.; // stop tests after this many failed assertions |
| 909 | int subcase_filter_levelscxx . . $ doctest/ContextOptions#subcase_filter_levels.; // apply the subcase filters for the first N levels |
| 910 | |
| 911 | bool successcxx . . $ doctest/ContextOptions#success.; // include successful assertions in output |
| 912 | bool case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.; // if filtering should be case sensitive |
| 913 | bool exitcxx . . $ doctest/ContextOptions#exit.; // if the program should be exited after the tests are ran/whatever |
| 914 | bool durationcxx . . $ doctest/ContextOptions#duration.; // print the time duration of each test case |
| 915 | bool minimalcxx . . $ doctest/ContextOptions#minimal.; // minimal console output (only test failures) |
| 916 | bool quietcxx . . $ doctest/ContextOptions#quiet.; // no console output |
| 917 | bool no_throwcxx . . $ doctest/ContextOptions#no_throw.; // to skip exceptions-related assertion macros |
| 918 | bool no_exitcodecxx . . $ doctest/ContextOptions#no_exitcode.; // if the framework should return 0 as the exitcode |
| 919 | bool no_runcxx . . $ doctest/ContextOptions#no_run.; // to not run the tests at all (can be done with an "*" exclude) |
| 920 | bool no_introcxx . . $ doctest/ContextOptions#no_intro.; // to not print the intro of the framework |
| 921 | bool no_versioncxx . . $ doctest/ContextOptions#no_version.; // to not print the version of the framework |
| 922 | bool no_colorscxx . . $ doctest/ContextOptions#no_colors.; // if output to the console should be colorized |
| 923 | bool force_colorscxx . . $ doctest/ContextOptions#force_colors.; // forces the use of colors even when a tty cannot be detected |
| 924 | bool no_breakscxx . . $ doctest/ContextOptions#no_breaks.; // to not break into the debugger |
| 925 | bool no_skipcxx . . $ doctest/ContextOptions#no_skip.; // don't skip test cases which are marked to be skipped |
| 926 | bool gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line.; // if line numbers should be surrounded with :x: and not (x): |
| 927 | bool no_path_in_filenamescxx . . $ doctest/ContextOptions#no_path_in_filenames.; // if the path to files should be removed from the output |
| 928 | bool no_line_numberscxx . . $ doctest/ContextOptions#no_line_numbers.; // if source code line numbers should be omitted from the output |
| 929 | bool no_debug_outputcxx . . $ doctest/ContextOptions#no_debug_output.; // no output in the debug console when a debugger is attached |
| 930 | bool no_skipped_summarycxx . . $ doctest/ContextOptions#no_skipped_summary.; // don't print "skipped" in the summary !!! UNDOCUMENTED !!! |
| 931 | bool no_time_in_outputcxx . . $ doctest/ContextOptions#no_time_in_output.; // omit any time/timestamps from output !!! UNDOCUMENTED !!! |
| 932 | |
| 933 | bool helpcxx . . $ doctest/ContextOptions#help.; // to print the help |
| 934 | bool versioncxx . . $ doctest/ContextOptions#version.; // to print the version |
| 935 | bool countcxx . . $ doctest/ContextOptions#count.; // if only the count of matching tests is to be retrieved |
| 936 | bool list_test_casescxx . . $ doctest/ContextOptions#list_test_cases.; // to list all tests matching the filters |
| 937 | bool list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites.; // to list all suites matching the filters |
| 938 | bool list_reporterscxx . . $ doctest/ContextOptions#list_reporters.; // lists all registered reporters |
| 939 | }; |
| 940 | |
| 941 | namespace detailcxx . . $ doctest/detail/ { |
| 942 | namespace typescxx . . $ doctest/detail/types/ { |
| 943 | #ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 944 | using namespace std; |
| 945 | #else |
| 946 | template <bool COND, typename T = void> |
| 947 | struct enable_ifcxx . . $ doctest/detail/types/enable_if# { }; |
| 948 | |
| 949 | template <typename T> |
| 950 | struct enable_ifcxx . . $ doctest/detail/types/enable_if#<true, T> { using typecxx . . $ doctest/detail/types/enable_if#type# = T; }; |
| 951 | |
| 952 | struct true_typecxx . . $ doctest/detail/types/true_type# { static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! bool valuecxx . . $ doctest/detail/types/true_type#value. = true; }; |
| 953 | struct false_typecxx . . $ doctest/detail/types/false_type# { static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! bool valuecxx . . $ doctest/detail/types/false_type#value. = false; }; |
| 954 | |
| 955 | template <typename T> struct remove_referencecxx . . $ doctest/detail/types/remove_reference# { using typecxx . . $ doctest/detail/types/remove_reference#type# = T; }; |
| 956 | template <typename T> struct remove_referencecxx . . $ doctest/detail/types/remove_reference#<T&> { using typecxx . . $ doctest/detail/types/remove_reference#type# = T; }; |
| 957 | template <typename T> struct remove_referencecxx . . $ doctest/detail/types/remove_reference#<T&&> { using typecxx . . $ doctest/detail/types/remove_reference#type# = T; }; |
| 958 | |
| 959 | template <typename T> struct is_rvalue_referencecxx . . $ doctest/detail/types/is_rvalue_reference# : false_typecxx . . $ doctest/detail/types/false_type# { }; |
| 960 | template <typename T> struct is_rvalue_referencecxx . . $ doctest/detail/types/is_rvalue_reference#<T&&> : true_typecxx . . $ doctest/detail/types/true_type# { }; |
| 961 | |
| 962 | template<typename T> struct remove_constcxx . . $ doctest/detail/types/remove_const# { using typecxx . . $ doctest/detail/types/remove_const#type# = T; }; |
| 963 | template <typename T> struct remove_constcxx . . $ doctest/detail/types/remove_const#<const T> { using typecxx . . $ doctest/detail/types/remove_const#type# = T; }; |
| 964 | |
| 965 | // Compiler intrinsics |
| 966 | template <typename T> struct is_enumcxx . . $ doctest/detail/types/is_enum# { static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! bool valuecxx . . $ doctest/detail/types/is_enum#value. = __is_enum(T); }; |
| 967 | template <typename T> struct underlying_typecxx . . $ doctest/detail/types/underlying_type# { using typecxx . . $ doctest/detail/types/underlying_type#type# = __underlying_type(T); }; |
| 968 | |
| 969 | template <typename T> struct is_pointercxx . . $ doctest/detail/types/is_pointer# : false_typecxx . . $ doctest/detail/types/false_type# { }; |
| 970 | template <typename T> struct is_pointercxx . . $ doctest/detail/types/is_pointer#<T*> : true_typecxx . . $ doctest/detail/types/true_type# { }; |
| 971 | |
| 972 | template <typename T> struct is_arraycxx . . $ doctest/detail/types/is_array# : false_typecxx . . $ doctest/detail/types/false_type# { }; |
| 973 | // NOLINTNEXTLINE(*-avoid-c-arrays) |
| 974 | template <typename T, size_tcxx . . $ doctest/size_t# SIZE> struct is_arraycxx . . $ doctest/detail/types/is_array#<T[SIZE]> : true_typecxx . . $ doctest/detail/types/true_type# { }; |
| 975 | #endif |
| 976 | } |
| 977 | |
| 978 | // <utility> |
| 979 | template <typename T> |
| 980 | T&& declvalcxx . . $ doctest/detail/declval(72a7546933039840).(); |
| 981 | |
| 982 | template <class T> |
| 983 | DOCTEST_CONSTEXPR_FUNCcxx . . $ `tests/thirdparty/doctest/doctest.h:391:9`! T&& forwardcxx . . $ doctest/detail/forward(f56228ea88711827).(typename typescxx . . $ doctest/detail/types/::remove_referencecxx . . $ doctest/detail/types/remove_reference#<T>::type& t) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 984 | return static_cast<T&&>(t); |
| 985 | } |
| 986 | |
| 987 | template <class T> |
| 988 | DOCTEST_CONSTEXPR_FUNCcxx . . $ `tests/thirdparty/doctest/doctest.h:391:9`! T&& forwardcxx . . $ doctest/detail/forward(f1f6a9b4566963a8).(typename typescxx . . $ doctest/detail/types/::remove_referencecxx . . $ doctest/detail/types/remove_reference#<T>::type&& t) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 989 | return static_cast<T&&>(t); |
| 990 | } |
| 991 | |
| 992 | template <typename T> |
| 993 | struct deferred_falsecxx . . $ doctest/detail/deferred_false# : typescxx . . $ doctest/detail/types/::false_typecxx . . $ doctest/detail/types/false_type# { }; |
| 994 | |
| 995 | // MSVS 2015 :( |
| 996 | #if !DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! && defined(_MSC_VER) && _MSC_VER <= 1900 |
| 997 | template <typename T, typename = void> |
| 998 | struct has_global_insertion_operator : types::false_type { }; |
| 999 | |
| 1000 | template <typename T> |
| 1001 | struct has_global_insertion_operator<T, decltype(::operator<<(declval<std::ostream&>(), declval<const T&>()), void())> : types::true_type { }; |
| 1002 | |
| 1003 | template <typename T, typename = void> |
| 1004 | struct has_insertion_operator { static DOCTEST_CONSTEXPR bool value = has_global_insertion_operator<T>::value; }; |
| 1005 | |
| 1006 | template <typename T, bool global> |
| 1007 | struct insert_hack; |
| 1008 | |
| 1009 | template <typename T> |
| 1010 | struct insert_hack<T, true> { |
| 1011 | static void insert(std::ostream& os, const T& t) { ::operator<<(os, t); } |
| 1012 | }; |
| 1013 | |
| 1014 | template <typename T> |
| 1015 | struct insert_hack<T, false> { |
| 1016 | static void insert(std::ostream& os, const T& t) { operator<<(os, t); } |
| 1017 | }; |
| 1018 | |
| 1019 | template <typename T> |
| 1020 | using insert_hack_t = insert_hack<T, has_global_insertion_operator<T>::value>; |
| 1021 | #else |
| 1022 | template <typename T, typename = void> |
| 1023 | struct has_insertion_operatorcxx . . $ doctest/detail/has_insertion_operator# : typescxx . . $ doctest/detail/types/::false_typecxx . . $ doctest/detail/types/false_type# { }; |
| 1024 | #endif |
| 1025 | |
| 1026 | template <typename T> |
| 1027 | struct has_insertion_operatorcxx . . $ doctest/detail/has_insertion_operator#<T, decltype(operator<<(declvalcxx . . $ doctest/detail/declval(72a7546933039840).<stdcxx . . $ std/::ostreamcxx . . $ std/ostream#&>(), declvalcxx . . $ doctest/detail/declval(72a7546933039840).<const T&>()), void())> : typescxx . . $ doctest/detail/types/::true_typecxx . . $ doctest/detail/types/true_type# { }; |
| 1028 | |
| 1029 | template <typename T> |
| 1030 | struct should_stringify_as_underlying_typecxx . . $ doctest/detail/should_stringify_as_underlying_type# { |
| 1031 | static DOCTEST_CONSTEXPRcxx . . $ `tests/thirdparty/doctest/doctest.h:390:9`! bool valuecxx . . $ doctest/detail/should_stringify_as_underlying_type#value. = detailcxx . . $ doctest/detail/::typescxx . . $ doctest/detail/types/::is_enumcxx . . $ doctest/detail/types/is_enum#<T>::value && !doctestcxx . . $ doctest/::detailcxx . . $ doctest/detail/::has_insertion_operatorcxx . . $ doctest/detail/has_insertion_operator#<T>::value; |
| 1032 | }; |
| 1033 | |
| 1034 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* tlssPushcxx . . $ doctest/detail/tlssPush(a0ce4335f407e5ba).(); |
| 1035 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# tlssPopcxx . . $ doctest/detail/tlssPop(352b1a6751d00680).(); |
| 1036 | |
| 1037 | template <bool C> |
| 1038 | struct StringMakerBasecxx . . $ doctest/detail/StringMakerBase# { |
| 1039 | template <typename T> |
| 1040 | static Stringcxx . . $ doctest/String# convertcxx . . $ doctest/detail/StringMakerBase#convert(509cc594a12fcc32).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(T)) { |
| 1041 | #ifdef DOCTEST_CONFIG_REQUIRE_STRINGIFICATION_FOR_ALL_USED_TYPES |
| 1042 | static_assert(deferred_false<T>::value, "No stringification detected for type T. See string conversion manual"); |
| 1043 | #endif |
| 1044 | returncxx . . $ doctest/String#String(4217971db7ca43dc). "{?}"cxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 1045 | } |
| 1046 | }; |
| 1047 | |
| 1048 | template <typename T> |
| 1049 | struct filldatacxx . . $ doctest/detail/filldata#; |
| 1050 | |
| 1051 | template <typename T> |
| 1052 | void fillosscxx . . $ doctest/detail/filloss(714c19462e6a5dd).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const T& in) { |
| 1053 | filldatacxx . . $ doctest/detail/filldata#<T>::fill(stream, in); |
| 1054 | } |
| 1055 | |
| 1056 | template <typename T, size_tcxx . . $ doctest/size_t# N> |
| 1057 | void fillosscxx . . $ doctest/detail/filloss(3891446e24f8707d).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const T (&in)[N]) { // NOLINT(*-avoid-c-arrays) |
| 1058 | // T[N], T(&)[N], T(&&)[N] have same behaviour. |
| 1059 | // Hence remove reference. |
| 1060 | fillosscxx . . $ doctest/detail/filloss(714c19462e6a5dd).<typename typescxx . . $ doctest/detail/types/::remove_referencecxx . . $ doctest/detail/types/remove_reference#<decltype(in)>::type>(stream, in); |
| 1061 | } |
| 1062 | |
| 1063 | template <typename T> |
| 1064 | Stringcxx . . $ doctest/String# toStreamcxx . . $ doctest/detail/toStream(a875beec49fb3d5c).(const T& in) { |
| 1065 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream = tlssPushcxx . . $ doctest/detail/tlssPush(a0ce4335f407e5ba).(); |
| 1066 | fillosscxx . . $ doctest/detail/filloss(7934dc49f5ca9680).(stream, in); |
| 1067 | return tlssPopcxx . . $ doctest/String#String(4217971db7ca43dc).(); |
| 1068 | } |
| 1069 | |
| 1070 | template <> |
| 1071 | struct StringMakerBasecxx . . $ doctest/detail/StringMakerBase#<true> { |
| 1072 | template <typename T> |
| 1073 | static Stringcxx . . $ doctest/String# convertcxx . . $ doctest/detail/StringMakerBase#convert(a875beec49fb3d5c).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(T) in) { |
| 1074 | return toStreamcxx . . $ doctest/detail/toStream(a875beec49fb3d5c).(in); |
| 1075 | } |
| 1076 | }; |
| 1077 | } // namespace detail |
| 1078 | |
| 1079 | template <typename T> |
| 1080 | struct StringMakercxx . . $ doctest/StringMaker# : public detailcxx . . $ doctest/detail/::StringMakerBasecxx . . $ doctest/detail/StringMakerBase#< |
| 1081 | detailcxx . . $ doctest/detail/::has_insertion_operatorcxx . . $ doctest/detail/has_insertion_operator#<T>::value || detailcxx . . $ doctest/detail/::typescxx . . $ doctest/detail/types/::is_pointercxx . . $ doctest/detail/types/is_pointer#<T>::value || detailcxx . . $ doctest/detail/::typescxx . . $ doctest/detail/types/::is_arraycxx . . $ doctest/detail/types/is_array#<T>::value> |
| 1082 | {}; |
| 1083 | |
| 1084 | #ifndef DOCTEST_STRINGIFY |
| 1085 | #ifdef DOCTEST_CONFIG_DOUBLE_STRINGIFY |
| 1086 | #define DOCTEST_STRINGIFY(...) toString(toString(__VA_ARGS__)) |
| 1087 | #else |
| 1088 | #define DOCTEST_STRINGIFYcxx . . $ `tests/thirdparty/doctest/doctest.h:1088:9`!(...) toString(__VA_ARGS__) |
| 1089 | #endif |
| 1090 | #endif |
| 1091 | |
| 1092 | template <typename T> |
| 1093 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(352b1a6751d00680).() { |
| 1094 | #if DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! == 0 && DOCTEST_GCCcxx . . $ `tests/thirdparty/doctest/doctest.h:105:9`! == 0 && DOCTEST_ICCcxx . . $ `tests/thirdparty/doctest/doctest.h:108:9`! == 0 |
| 1095 | String ret = __FUNCSIG__; // class doctest::String __cdecl doctest::toString<TYPE>(void) |
| 1096 | String::size_type beginPos = ret.find('<'); |
| 1097 | return ret.substr(beginPos + 1, ret.size() - beginPos - static_cast<String::size_type>(sizeof(">(void)"))); |
| 1098 | #else |
| 1099 | Stringcxx . . $ doctest/String# ret = __PRETTY_FUNCTION__; // doctest::String toString() [with T = TYPE] |
| 1100 | Stringcxx . . $ doctest/String#::size_typecxx . . $ doctest/String#size_type# begin = ret.findcxx . . $ doctest/String#find(8888c36a42ab742a).('=') + 2; |
| 1101 | return retcxx . . $ doctest/String#String(4217971db7ca43dc)..substrcxx . . $ doctest/String#substr(f9da8990705ceeec).(begin, ret.sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).() - begin - 1); |
| 1102 | #endif |
| 1103 | } |
| 1104 | |
| 1105 | template <typename T, typename detailcxx . . $ doctest/detail/::typescxx . . $ doctest/detail/types/::enable_ifcxx . . $ doctest/detail/types/enable_if#<!detail::should_stringify_as_underlying_type<T>::value, bool>::type = true> |
| 1106 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(a875beec49fb3d5c).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(T) value) { |
| 1107 | return StringMakercxx . . $ doctest/StringMaker#<T>::convert(value); |
| 1108 | } |
| 1109 | |
| 1110 | #ifdef DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1111 | DOCTEST_INTERFACE String toString(const char* in); |
| 1112 | #endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1113 | |
| 1114 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! >= DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(19, 20, 0) |
| 1115 | // see this issue on why this is needed: https://github.com/doctest/doctest/issues/183 |
| 1116 | DOCTEST_INTERFACE String toString(const std::string& in); |
| 1117 | #endif // VS 2019 |
| 1118 | |
| 1119 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(8640a5001b532af8).(Stringcxx . . $ doctest/String# in); |
| 1120 | |
| 1121 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(cb814b334a4c676d).(stdcxx . . $ std/::nullptr_tcxx . . $ std/nullptr_t#); |
| 1122 | |
| 1123 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(5fb951c085b6e368).(bool in); |
| 1124 | |
| 1125 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(892a074b123f01ad).(float in); |
| 1126 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(c0754ba2ddc3e312).(double in); |
| 1127 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(7affd6024264b61e).(double long in); |
| 1128 | |
| 1129 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(cab5051ee12c15d3).(char in); |
| 1130 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(16d3a4d5435246ff).(char signed in); |
| 1131 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(e20a7a7e50e2867c).(char unsigned in); |
| 1132 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(d73d3ea0da147730).(short in); |
| 1133 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(c84eaa99e48537a3).(short unsigned in); |
| 1134 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(42cd9c6e4f826fde).(signed in); |
| 1135 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(e9c0d58938672e5b).(unsigned in); |
| 1136 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(2aec1de9e2361335).(long in); |
| 1137 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(9780499b6cac838a).(long unsigned in); |
| 1138 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(292e4eec053ea6c5).(long long in); |
| 1139 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(6bbe65161bf1928a).(long long unsigned in); |
| 1140 | |
| 1141 | template <typename T, typename detailcxx . . $ doctest/detail/::typescxx . . $ doctest/detail/types/::enable_ifcxx . . $ doctest/detail/types/enable_if#<detail::should_stringify_as_underlying_type<T>::value, bool>::type = true> |
| 1142 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(a875beec49fb3d5c).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(T) value) { |
| 1143 | using UTcxx . . $ doctest/toString(a875beec49fb3d5c).UT# = typename detailcxx . . $ doctest/detail/::typescxx . . $ doctest/detail/types/::underlying_typecxx . . $ doctest/detail/types/underlying_type#<T>::type; |
| 1144 | return (DOCTEST_STRINGIFYcxx . . $ doctest/toString(c84eaa99e48537a3).(static_cast<UT>(value))); |
| 1145 | } |
| 1146 | |
| 1147 | namespace detailcxx . . $ doctest/detail/ { |
| 1148 | template <typename T> |
| 1149 | struct filldatacxx . . $ doctest/detail/filldata# |
| 1150 | { |
| 1151 | static void fillcxx . . $ doctest/detail/filldata#fill(714c19462e6a5dd).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const T& in) { |
| 1152 | #if defined(_MSC_VER) && _MSC_VER <= 1900 |
| 1153 | insert_hack_t<T>::insert(*stream, in); |
| 1154 | #else |
| 1155 | operator<<(*stream, in); |
| 1156 | #endif |
| 1157 | } |
| 1158 | }; |
| 1159 | |
| 1160 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4866) |
| 1161 | // NOLINTBEGIN(*-avoid-c-arrays) |
| 1162 | template <typename T, size_tcxx . . $ doctest/size_t# N> |
| 1163 | struct filldatacxx . . $ doctest/detail/filldata#<T[N]> { |
| 1164 | static void fillcxx . . $ doctest/detail/filldata#fill(3891446e24f8707d).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const T(&in)[N]) { |
| 1165 | *stream <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "["; |
| 1166 | for (size_tcxx . . $ doctest/size_t# i = 0; i < N; i++) { |
| 1167 | if (i != 0) { *stream <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", "; } |
| 1168 | *stream << (DOCTEST_STRINGIFYcxx . . $ doctest/toString(2aec1de9e2361335).(in[i])); |
| 1169 | } |
| 1170 | *stream <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "]"; |
| 1171 | } |
| 1172 | }; |
| 1173 | // NOLINTEND(*-avoid-c-arrays) |
| 1174 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 1175 | |
| 1176 | // Specialized since we don't want the terminating null byte! |
| 1177 | // NOLINTBEGIN(*-avoid-c-arrays) |
| 1178 | template <size_tcxx . . $ doctest/size_t# N> |
| 1179 | struct filldatacxx . . $ doctest/detail/filldata#<const char[N]> { |
| 1180 | static void fillcxx . . $ doctest/detail/filldata#fill(d2faf73c20ce95a7).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const char (&in)[N]) { |
| 1181 | *stream <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). Stringcxx . . $ doctest/String#(in, in[N - 1] ? N : N - 1); |
| 1182 | } // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks) |
| 1183 | }; |
| 1184 | // NOLINTEND(*-avoid-c-arrays) |
| 1185 | |
| 1186 | template <> |
| 1187 | struct filldatacxx . . $ doctest/detail/filldata#<const void*> { |
| 1188 | static void fillcxx . . $ doctest/detail/filldata#fill(d18dc10aeff441c9).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const void* in); |
| 1189 | }; |
| 1190 | |
| 1191 | template <typename T> |
| 1192 | struct filldatacxx . . $ doctest/detail/filldata#<T*> { |
| 1193 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4180) |
| 1194 | static void fillcxx . . $ doctest/detail/filldata#fill(c8ac704b2d16c80).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const T* in) { |
| 1195 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 1196 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wmicrosoft-cast") |
| 1197 | filldatacxx . . $ doctest/detail/filldata#<const void*>::fillcxx . . $ doctest/detail/filldata#fill(d18dc10aeff441c9).(stream, |
| 1198 | #if DOCTEST_GCCcxx . . $ `tests/thirdparty/doctest/doctest.h:105:9`! == 0 || DOCTEST_GCCcxx . . $ `tests/thirdparty/doctest/doctest.h:105:9`! >= DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(4, 9, 0) |
| 1199 | reinterpret_cast<const void*>(in) |
| 1200 | #else |
| 1201 | *reinterpret_cast<const void* const*>(&in) |
| 1202 | #endif |
| 1203 | ); |
| 1204 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 1205 | } |
| 1206 | }; |
| 1207 | } |
| 1208 | |
| 1209 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Approxcxx . . $ doctest/Approx# |
| 1210 | { |
| 1211 | Approxcxx . . $ doctest/Approx#Approx(ba8836b59fb42830).(double value); |
| 1212 | |
| 1213 | Approxcxx . . $ doctest/Approx# operatorcxx . . $ doctest/Approx#`operator()`(4d0f62d01348e44d).()(double value) const; |
| 1214 | |
| 1215 | #ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1216 | template <typename T> |
| 1217 | explicit Approx(const T& value, |
| 1218 | typename detail::types::enable_if<std::is_constructible<double, T>::value>::type* = |
| 1219 | static_cast<T*>(nullptr)) { |
| 1220 | *this = static_cast<double>(value); |
| 1221 | } |
| 1222 | #endif // DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1223 | |
| 1224 | Approxcxx . . $ doctest/Approx#& epsiloncxx . . $ doctest/Approx#epsilon(1d9f6b6104c65758).(double newEpsilon); |
| 1225 | |
| 1226 | #ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1227 | template <typename T> |
| 1228 | typename std::enable_if<std::is_constructible<double, T>::value, Approx&>::type epsilon( |
| 1229 | const T& newEpsilon) { |
| 1230 | m_epsilon = static_cast<double>(newEpsilon); |
| 1231 | return *this; |
| 1232 | } |
| 1233 | #endif // DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1234 | |
| 1235 | Approxcxx . . $ doctest/Approx#& scalecxx . . $ doctest/Approx#scale(1d9f6b6104c65758).(double newScale); |
| 1236 | |
| 1237 | #ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1238 | template <typename T> |
| 1239 | typename std::enable_if<std::is_constructible<double, T>::value, Approx&>::type scale( |
| 1240 | const T& newScale) { |
| 1241 | m_scale = static_cast<double>(newScale); |
| 1242 | return *this; |
| 1243 | } |
| 1244 | #endif // DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1245 | |
| 1246 | // clang-format off |
| 1247 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator==`(c76850509ca899).==(double lhs, const Approxcxx . . $ doctest/Approx# & rhs); |
| 1248 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator==`(9af8b5d848f4c114).==(const Approxcxx . . $ doctest/Approx# & lhs, double rhs); |
| 1249 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator!=`(c76850509ca899).!=(double lhs, const Approxcxx . . $ doctest/Approx# & rhs); |
| 1250 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator!=`(9af8b5d848f4c114).!=(const Approxcxx . . $ doctest/Approx# & lhs, double rhs); |
| 1251 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator<=`(c76850509ca899).<=(double lhs, const Approxcxx . . $ doctest/Approx# & rhs); |
| 1252 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator<=`(9af8b5d848f4c114).<=(const Approxcxx . . $ doctest/Approx# & lhs, double rhs); |
| 1253 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator>=`(c76850509ca899).>=(double lhs, const Approxcxx . . $ doctest/Approx# & rhs); |
| 1254 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator>=`(9af8b5d848f4c114).>=(const Approxcxx . . $ doctest/Approx# & lhs, double rhs); |
| 1255 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator<`(c76850509ca899).< (double lhs, const Approxcxx . . $ doctest/Approx# & rhs); |
| 1256 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator<`(9af8b5d848f4c114).< (const Approxcxx . . $ doctest/Approx# & lhs, double rhs); |
| 1257 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator>`(c76850509ca899).> (double lhs, const Approxcxx . . $ doctest/Approx# & rhs); |
| 1258 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! friend bool operatorcxx . . $ doctest/`operator>`(9af8b5d848f4c114).> (const Approxcxx . . $ doctest/Approx# & lhs, double rhs); |
| 1259 | |
| 1260 | #ifdef DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1261 | #define DOCTEST_APPROX_PREFIX \ |
| 1262 | template <typename T> friend typename std::enable_if<std::is_constructible<double, T>::value, bool>::type |
| 1263 | |
| 1264 | DOCTEST_APPROX_PREFIX operator==(const T& lhs, const Approx& rhs) { return operator==(static_cast<double>(lhs), rhs); } |
| 1265 | DOCTEST_APPROX_PREFIX operator==(const Approx& lhs, const T& rhs) { return operator==(rhs, lhs); } |
| 1266 | DOCTEST_APPROX_PREFIX operator!=(const T& lhs, const Approx& rhs) { return !operator==(lhs, rhs); } |
| 1267 | DOCTEST_APPROX_PREFIX operator!=(const Approx& lhs, const T& rhs) { return !operator==(rhs, lhs); } |
| 1268 | DOCTEST_APPROX_PREFIX operator<=(const T& lhs, const Approx& rhs) { return static_cast<double>(lhs) < rhs.m_value || lhs == rhs; } |
| 1269 | DOCTEST_APPROX_PREFIX operator<=(const Approx& lhs, const T& rhs) { return lhs.m_value < static_cast<double>(rhs) || lhs == rhs; } |
| 1270 | DOCTEST_APPROX_PREFIX operator>=(const T& lhs, const Approx& rhs) { return static_cast<double>(lhs) > rhs.m_value || lhs == rhs; } |
| 1271 | DOCTEST_APPROX_PREFIX operator>=(const Approx& lhs, const T& rhs) { return lhs.m_value > static_cast<double>(rhs) || lhs == rhs; } |
| 1272 | DOCTEST_APPROX_PREFIX operator< (const T& lhs, const Approx& rhs) { return static_cast<double>(lhs) < rhs.m_value && lhs != rhs; } |
| 1273 | DOCTEST_APPROX_PREFIX operator< (const Approx& lhs, const T& rhs) { return lhs.m_value < static_cast<double>(rhs) && lhs != rhs; } |
| 1274 | DOCTEST_APPROX_PREFIX operator> (const T& lhs, const Approx& rhs) { return static_cast<double>(lhs) > rhs.m_value && lhs != rhs; } |
| 1275 | DOCTEST_APPROX_PREFIX operator> (const Approx& lhs, const T& rhs) { return lhs.m_value > static_cast<double>(rhs) && lhs != rhs; } |
| 1276 | #undef DOCTEST_APPROX_PREFIX |
| 1277 | #endif // DOCTEST_CONFIG_INCLUDE_TYPE_TRAITS |
| 1278 | |
| 1279 | // clang-format on |
| 1280 | |
| 1281 | double m_epsiloncxx . . $ doctest/Approx#m_epsilon.; |
| 1282 | double m_scalecxx . . $ doctest/Approx#m_scale.; |
| 1283 | double m_valuecxx . . $ doctest/Approx#m_value.; |
| 1284 | }; |
| 1285 | |
| 1286 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(efbd83c3a9d15c7a).(const Approxcxx . . $ doctest/Approx#& in); |
| 1287 | |
| 1288 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! const ContextOptionscxx . . $ doctest/ContextOptions#* getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).(); |
| 1289 | |
| 1290 | template <typename F> |
| 1291 | struct DOCTEST_INTERFACE_DECLcxx . . $ `tests/thirdparty/doctest/doctest.h:343:9`! IsNaNcxx . . $ doctest/IsNaN# |
| 1292 | { |
| 1293 | F valuecxx . . $ doctest/IsNaN#value.; bool flippedcxx . . $ doctest/IsNaN#flipped.; |
| 1294 | IsNaNcxx . . $ doctest/IsNaN#`IsNaN<F>`(247de80c150bf2a3).(F f, bool flip = false) : valuecxx . . $ doctest/IsNaN#value.(f), flippedcxx . . $ doctest/IsNaN#flipped.(flip) { } |
| 1295 | IsNaNcxx . . $ doctest/IsNaN#<F> operatorcxx . . $ doctest/IsNaN#`operator!`(ed29b80cae8e9518).!() const { return { valuecxx . . $ doctest/IsNaN#value., !flippedcxx . . $ doctest/IsNaN#flipped. }; } |
| 1296 | operatorcxx . . $ doctest/IsNaN#`operator bool`(50ce9a9e25b4a850). bool() const; |
| 1297 | }; |
| 1298 | #ifndef __MINGW32__ |
| 1299 | extern template struct DOCTEST_INTERFACE_DECLcxx . . $ `tests/thirdparty/doctest/doctest.h:343:9`! IsNaNcxx . . $ doctest/IsNaN#<float>; |
| 1300 | extern template struct DOCTEST_INTERFACE_DECLcxx . . $ `tests/thirdparty/doctest/doctest.h:343:9`! IsNaNcxx . . $ doctest/IsNaN#<double>; |
| 1301 | extern template struct DOCTEST_INTERFACE_DECLcxx . . $ `tests/thirdparty/doctest/doctest.h:343:9`! IsNaNcxx . . $ doctest/IsNaN#<long double>; |
| 1302 | #endif |
| 1303 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(a812786e0123a700).(IsNaNcxx . . $ doctest/IsNaN#<float> in); |
| 1304 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(549a1e4eb289f6e8).(IsNaNcxx . . $ doctest/IsNaN#<double> in); |
| 1305 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(e72a53e74b84eac2).(IsNaNcxx . . $ doctest/IsNaN#<double long> in); |
| 1306 | |
| 1307 | #ifndef DOCTEST_CONFIG_DISABLE |
| 1308 | |
| 1309 | namespace detailcxx . . $ doctest/detail/ { |
| 1310 | // clang-format off |
| 1311 | #ifdef DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1312 | template<class T> struct decay_array { using type = T; }; |
| 1313 | template<class T, unsigned N> struct decay_array<T[N]> { using type = T*; }; |
| 1314 | template<class T> struct decay_array<T[]> { using type = T*; }; |
| 1315 | |
| 1316 | template<class T> struct not_char_pointer { static DOCTEST_CONSTEXPR int value = 1; }; |
| 1317 | template<> struct not_char_pointer<char*> { static DOCTEST_CONSTEXPR int value = 0; }; |
| 1318 | template<> struct not_char_pointer<const char*> { static DOCTEST_CONSTEXPR int value = 0; }; |
| 1319 | |
| 1320 | template<class T> struct can_use_op : public not_char_pointer<typename decay_array<T>::type> {}; |
| 1321 | #endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1322 | // clang-format on |
| 1323 | |
| 1324 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestFailureExceptioncxx . . $ doctest/detail/TestFailureException# |
| 1325 | { |
| 1326 | }; |
| 1327 | |
| 1328 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool checkIfShouldThrowcxx . . $ doctest/detail/checkIfShouldThrow(5b702595a4a6849e).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at); |
| 1329 | |
| 1330 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 1331 | DOCTEST_NORETURNcxx . . $ `tests/thirdparty/doctest/doctest.h:373:9`! |
| 1332 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 1333 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! void throwExceptioncxx . . $ doctest/detail/throwException(49f6e7a06ebc5aa8).(); |
| 1334 | |
| 1335 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Subcasecxx . . $ doctest/detail/Subcase# |
| 1336 | { |
| 1337 | SubcaseSignaturecxx . . $ doctest/SubcaseSignature# m_signaturecxx . . $ doctest/detail/Subcase#m_signature.; |
| 1338 | bool m_enteredcxx . . $ doctest/detail/Subcase#m_entered. = false; |
| 1339 | |
| 1340 | Subcasecxx . . $ doctest/detail/Subcase#Subcase(bd3d96f577585b6d).(const Stringcxx . . $ doctest/String#& name, const char* file, int line); |
| 1341 | Subcasecxx . . $ doctest/detail/Subcase#Subcase(d81f886efedbad50).(const Subcasecxx . . $ doctest/detail/Subcase#&) = delete; |
| 1342 | Subcasecxx . . $ doctest/detail/Subcase#Subcase(712f2a7fa572c73f).(Subcasecxx . . $ doctest/detail/Subcase#&&) = delete; |
| 1343 | Subcasecxx . . $ doctest/detail/Subcase#& operatorcxx . . $ doctest/detail/Subcase#`operator=`(4f57cd5aa48e5563).=(const Subcasecxx . . $ doctest/detail/Subcase#&) = delete; |
| 1344 | Subcasecxx . . $ doctest/detail/Subcase#& operatorcxx . . $ doctest/detail/Subcase#`operator=`(af95c5f8b1e10242).=(Subcasecxx . . $ doctest/detail/Subcase#&&) = delete; |
| 1345 | ~cxx . . $ doctest/detail/Subcase#`~Subcase`(ced63f7c635d850d).Subcasecxx . . $ doctest/detail/Subcase#(); |
| 1346 | |
| 1347 | operatorcxx . . $ doctest/detail/Subcase#`operator bool`(50ce9a9e25b4a850). bool() const; |
| 1348 | |
| 1349 | private: |
| 1350 | bool checkFilterscxx . . $ doctest/detail/Subcase#checkFilters(c9857a73d68e59ba).(); |
| 1351 | }; |
| 1352 | |
| 1353 | template <typename L, typename R> |
| 1354 | Stringcxx . . $ doctest/String# stringifyBinaryExprcxx . . $ doctest/detail/stringifyBinaryExpr(8752d9654361963e).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) lhs, const char* op, |
| 1355 | const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(R) rhs) { |
| 1356 | return (DOCTEST_STRINGIFYcxx . . $ doctest/toString(e72a53e74b84eac2).(lhs)) +cxx . . $ doctest/operator+(670c5a04c572f3f0). op +cxx . . $ doctest/operator+(670c5a04c572f3f0). (DOCTEST_STRINGIFYcxx . . $ doctest/toString(e9c0d58938672e5b).(rhs)); |
| 1357 | } |
| 1358 | |
| 1359 | #if DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! && DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! < DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(3, 6, 0) |
| 1360 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wunused-comparison") |
| 1361 | #endif |
| 1362 | |
| 1363 | // This will check if there is any way it could find a operator like member or friend and uses it. |
| 1364 | // If not it doesn't find the operator or if the operator at global scope is defined after |
| 1365 | // this template, the template won't be instantiated due to SFINAE. Once the template is not |
| 1366 | // instantiated it can look for global operator using normal conversions. |
| 1367 | #ifdef __NVCC__ |
| 1368 | #define SFINAE_OP(ret,op) ret |
| 1369 | #else |
| 1370 | #define SFINAE_OPcxx . . $ `tests/thirdparty/doctest/doctest.h:1370:9`!(ret,op) decltype((void)(doctest::detail::declval<L>() op doctest::detail::declval<R>()),ret{}) |
| 1371 | #endif |
| 1372 | |
| 1373 | #define DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ `tests/thirdparty/doctest/doctest.h:1373:9`!(op, op_str, op_macro) \ |
| 1374 | template <typename R> \ |
| 1375 | DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! SFINAE_OPcxx . . $ `tests/thirdparty/doctest/doctest.h:1370:9`!(Result,op) operator op(R&& rhs) { \ |
| 1376 | bool res = op_macro(doctest::detail::forward<const L>(lhs), doctest::detail::forward<R>(rhs)); \ |
| 1377 | if(m_at & assertType::is_false) \ |
| 1378 | res = !res; \ |
| 1379 | if(!res || doctest::getContextOptions()->success) \ |
| 1380 | return Result(res, stringifyBinaryExpr(lhs, op_str, rhs)); \ |
| 1381 | return Result(res); \ |
| 1382 | } |
| 1383 | |
| 1384 | // more checks could be added - like in Catch: |
| 1385 | // https://github.com/catchorg/Catch2/pull/1480/files |
| 1386 | // https://github.com/catchorg/Catch2/pull/1481/files |
| 1387 | #define DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(rt, op) \ |
| 1388 | template <typename R> \ |
| 1389 | rt& operator op(const R&) { \ |
| 1390 | static_assert(deferred_false<R>::value, \ |
| 1391 | "Expression Too Complex Please Rewrite As Binary Comparison!"); \ |
| 1392 | return *this; \ |
| 1393 | } |
| 1394 | |
| 1395 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Resultcxx . . $ doctest/detail/Result# // NOLINT(*-member-init) |
| 1396 | { |
| 1397 | bool m_passedcxx . . $ doctest/detail/Result#m_passed.; |
| 1398 | Stringcxx . . $ doctest/String# m_decompcxx . . $ doctest/detail/Result#m_decomp.; |
| 1399 | |
| 1400 | Resultcxx . . $ doctest/detail/Result#Result(ced63f7c635d850d).() = default; // TODO: Why do we need this? (To remove NOLINT) |
| 1401 | Resultcxx . . $ doctest/detail/Result#Result(7575036e894d6895).(bool passed, const Stringcxx . . $ doctest/String#& decomposition = Stringcxx . . $ doctest/String#String(49f6e7a06ebc5aa8).()); |
| 1402 | |
| 1403 | // forbidding some expressions based on this table: https://en.cppreference.com/w/cpp/language/operator_precedence |
| 1404 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, &) |
| 1405 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Result, ^) |
| 1406 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#`operator|`(3453bebabd8016d4).(Result, |) |
| 1407 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, &&) |
| 1408 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, ||) |
| 1409 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#(Result, ==) |
| 1410 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Result, !=) |
| 1411 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#(Result, <) |
| 1412 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#(Result, >) |
| 1413 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#(Result, <=) |
| 1414 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#`operator>=`(3453bebabd8016d4).(Result, >=) |
| 1415 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Result, =) |
| 1416 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, +=) |
| 1417 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#`operator-=`(3453bebabd8016d4).(Result, -=) |
| 1418 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Result, *=) |
| 1419 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Result, /=) |
| 1420 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#(Result, %=) |
| 1421 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, <<=) |
| 1422 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#(Result, >>=) |
| 1423 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Result#`operator&=`(3453bebabd8016d4).(Result, &=) |
| 1424 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, ^=) |
| 1425 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Result, |=) |
| 1426 | }; |
| 1427 | |
| 1428 | #ifndef DOCTEST_CONFIG_NO_COMPARISON_WARNING_SUPPRESSION |
| 1429 | |
| 1430 | DOCTEST_CLANG_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:117:9`! |
| 1431 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wsign-conversion") |
| 1432 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wsign-compare") |
| 1433 | //DOCTEST_CLANG_SUPPRESS_WARNING("-Wdouble-promotion") |
| 1434 | //DOCTEST_CLANG_SUPPRESS_WARNING("-Wconversion") |
| 1435 | //DOCTEST_CLANG_SUPPRESS_WARNING("-Wfloat-equal") |
| 1436 | |
| 1437 | DOCTEST_GCC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:137:9`! |
| 1438 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wsign-conversion") |
| 1439 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wsign-compare") |
| 1440 | //DOCTEST_GCC_SUPPRESS_WARNING("-Wdouble-promotion") |
| 1441 | //DOCTEST_GCC_SUPPRESS_WARNING("-Wconversion") |
| 1442 | //DOCTEST_GCC_SUPPRESS_WARNING("-Wfloat-equal") |
| 1443 | |
| 1444 | DOCTEST_MSVC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:150:9`! |
| 1445 | // https://stackoverflow.com/questions/39479163 what's the difference between 4018 and 4389 |
| 1446 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4388) // signed/unsigned mismatch |
| 1447 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4389) // 'operator' : signed/unsigned mismatch |
| 1448 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4018) // 'expression' : signed/unsigned mismatch |
| 1449 | //DOCTEST_MSVC_SUPPRESS_WARNING(4805) // 'operation' : unsafe mix of type 'type' and type 'type' in operation |
| 1450 | |
| 1451 | #endif // DOCTEST_CONFIG_NO_COMPARISON_WARNING_SUPPRESSION |
| 1452 | |
| 1453 | // clang-format off |
| 1454 | #ifndef DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1455 | #define DOCTEST_COMPARISON_RETURN_TYPEcxx . . $ `tests/thirdparty/doctest/doctest.h:1455:9`! bool |
| 1456 | #else // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1457 | #define DOCTEST_COMPARISON_RETURN_TYPE typename types::enable_if<can_use_op<L>::value || can_use_op<R>::value, bool>::type |
| 1458 | inline bool eq(const char* lhs, const char* rhs) { return String(lhs) == String(rhs); } |
| 1459 | inline bool ne(const char* lhs, const char* rhs) { return String(lhs) != String(rhs); } |
| 1460 | inline bool lt(const char* lhs, const char* rhs) { return String(lhs) < String(rhs); } |
| 1461 | inline bool gt(const char* lhs, const char* rhs) { return String(lhs) > String(rhs); } |
| 1462 | inline bool le(const char* lhs, const char* rhs) { return String(lhs) <= String(rhs); } |
| 1463 | inline bool ge(const char* lhs, const char* rhs) { return String(lhs) >= String(rhs); } |
| 1464 | #endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1465 | // clang-format on |
| 1466 | |
| 1467 | #define DOCTEST_RELATIONAL_OPcxx . . $ `tests/thirdparty/doctest/doctest.h:1467:9`!(name, op) \ |
| 1468 | template <typename L, typename R> \ |
| 1469 | DOCTEST_COMPARISON_RETURN_TYPEcxx . . $ `tests/thirdparty/doctest/doctest.h:1455:9`! name(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) lhs, \ |
| 1470 | const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(R) rhs) { \ |
| 1471 | return lhs op rhs; \ |
| 1472 | } |
| 1473 | |
| 1474 | DOCTEST_RELATIONAL_OPcxx . . $ doctest/detail/eq(acb94948942028a1).(eq, ==) |
| 1475 | DOCTEST_RELATIONAL_OPcxx . . $ doctest/`operator!=`(f038f1112a1023e2).(ne, !=) |
| 1476 | DOCTEST_RELATIONAL_OPcxx . . $ doctest/`operator<`(d6e8d493c6efe0c6).(lt, <) |
| 1477 | DOCTEST_RELATIONAL_OPcxx . . $ doctest/`operator>`(d6e8d493c6efe0c6).(gt, >) |
| 1478 | DOCTEST_RELATIONAL_OPcxx . . $ doctest/`operator<=`(d6e8d493c6efe0c6).(le, <=) |
| 1479 | DOCTEST_RELATIONAL_OPcxx . . $ doctest/detail/ge(acb94948942028a1).(ge, >=) |
| 1480 | |
| 1481 | #ifndef DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1482 | #define DOCTEST_CMP_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:1482:9`!(l, r) l == r |
| 1483 | #define DOCTEST_CMP_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:1483:9`!(l, r) l != r |
| 1484 | #define DOCTEST_CMP_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:1484:9`!(l, r) l > r |
| 1485 | #define DOCTEST_CMP_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:1485:9`!(l, r) l < r |
| 1486 | #define DOCTEST_CMP_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:1486:9`!(l, r) l >= r |
| 1487 | #define DOCTEST_CMP_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:1487:9`!(l, r) l <= r |
| 1488 | #else // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1489 | #define DOCTEST_CMP_EQ(l, r) eq(l, r) |
| 1490 | #define DOCTEST_CMP_NE(l, r) ne(l, r) |
| 1491 | #define DOCTEST_CMP_GT(l, r) gt(l, r) |
| 1492 | #define DOCTEST_CMP_LT(l, r) lt(l, r) |
| 1493 | #define DOCTEST_CMP_GE(l, r) ge(l, r) |
| 1494 | #define DOCTEST_CMP_LE(l, r) le(l, r) |
| 1495 | #endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 1496 | |
| 1497 | template <typename L> |
| 1498 | // cppcheck-suppress copyCtorAndEqOperator |
| 1499 | struct Expression_lhscxx . . $ doctest/detail/Expression_lhs# |
| 1500 | { |
| 1501 | L lhscxx . . $ doctest/detail/Expression_lhs#lhs.; |
| 1502 | assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# m_atcxx . . $ doctest/detail/Expression_lhs#m_at.; |
| 1503 | |
| 1504 | explicit Expression_lhscxx . . $ doctest/detail/Expression_lhs#`Expression_lhs<L>`(1889e021ac2e7345).(L&& in, assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) |
| 1505 | : lhscxx . . $ doctest/detail/Expression_lhs#lhs.(static_cast<L&&>(in)) |
| 1506 | , m_atcxx . . $ doctest/detail/Expression_lhs#m_at.(at) {} |
| 1507 | |
| 1508 | DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! operatorcxx . . $ doctest/detail/Expression_lhs#`operator Result`(2cda15447a08409). Resultcxx . . $ doctest/detail/Result#() { |
| 1509 | // this is needed only for MSVC 2015 |
| 1510 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4800) // 'int': forcing value to bool |
| 1511 | bool res = static_cast<bool>(lhscxx . . $ doctest/detail/Expression_lhs#lhs.); |
| 1512 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 1513 | if(m_atcxx . . $ doctest/detail/Expression_lhs#m_at. & assertTypecxx . . $ doctest/assertType/::is_falsecxx . . $ doctest/assertType/is_false.) { //!OCLINT bitwise operator in conditional |
| 1514 | res = !res; |
| 1515 | } |
| 1516 | |
| 1517 | if(!res || getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->successcxx . . $ doctest/ContextOptions#success.) { |
| 1518 | return { res, (DOCTEST_STRINGIFYcxx . . $ doctest/toString(42cd9c6e4f826fde).(lhs)) }; |
| 1519 | } |
| 1520 | return {cxx . . $ doctest/detail/Result#Result(7575036e894d6895). res }; |
| 1521 | } |
| 1522 | |
| 1523 | /* This is required for user-defined conversions from Expression_lhs to L */ |
| 1524 | operatorcxx . . $ doctest/detail/Expression_lhs#`operator type-parameter-0-0`(8f5363d873dd4781). L() const { return lhscxx . . $ doctest/detail/Expression_lhs#lhs.; } |
| 1525 | |
| 1526 | // clang-format off |
| 1527 | DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ doctest/detail/declval(72a7546933039840).(==, " == ", DOCTEST_CMP_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:1482:9`!) //!OCLINT bitwise operator in conditional |
| 1528 | DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ doctest/detail/Expression_lhs#m_at.(!=, " != ", DOCTEST_CMP_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:1483:9`!) //!OCLINT bitwise operator in conditional |
| 1529 | DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ doctest/detail/Result#Result(49f6e7a06ebc5aa8).(>, " > ", DOCTEST_CMP_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:1484:9`!) //!OCLINT bitwise operator in conditional |
| 1530 | DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ `tests/thirdparty/doctest/doctest.h:1373:9`!(<, " < ", DOCTEST_CMP_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:1485:9`!) //!OCLINT bitwise operator in conditional |
| 1531 | DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ doctest/(>=, " >= ", DOCTEST_CMP_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:1486:9`!) //!OCLINT bitwise operator in conditional |
| 1532 | DOCTEST_DO_BINARY_EXPRESSION_COMPARISONcxx . . $ doctest/detail/Result#Result(49f6e7a06ebc5aa8).(<=, " <= ", DOCTEST_CMP_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:1487:9`!) //!OCLINT bitwise operator in conditional |
| 1533 | // clang-format on |
| 1534 | |
| 1535 | // forbidding some expressions based on this table: https://en.cppreference.com/w/cpp/language/operator_precedence |
| 1536 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, &) |
| 1537 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Expression_lhs, ^) |
| 1538 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Expression_lhs#`operator|`(c5c4defb0f62a818).(Expression_lhs, |) |
| 1539 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, &&) |
| 1540 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Expression_lhs#`operator||`(c5c4defb0f62a818).(Expression_lhs, ||) |
| 1541 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, =) |
| 1542 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Expression_lhs, +=) |
| 1543 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, -=) |
| 1544 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, *=) |
| 1545 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, /=) |
| 1546 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, %=) |
| 1547 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Expression_lhs, <<=) |
| 1548 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Expression_lhs, >>=) |
| 1549 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, &=) |
| 1550 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Expression_lhs#`operator^=`(c5c4defb0f62a818).(Expression_lhs, ^=) |
| 1551 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ `tests/thirdparty/doctest/doctest.h:1387:9`!(Expression_lhs, |=) |
| 1552 | // these 2 are unfortunate because they should be allowed - they have higher precedence over the comparisons, but the |
| 1553 | // ExpressionDecomposer class uses the left shift operator to capture the left operand of the binary expression... |
| 1554 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/Expression_lhs#`operator<<`(c5c4defb0f62a818).(Expression_lhs, <<) |
| 1555 | DOCTEST_FORBIT_EXPRESSIONcxx . . $ doctest/detail/deferred_false#(Expression_lhs, >>) |
| 1556 | }; |
| 1557 | |
| 1558 | #ifndef DOCTEST_CONFIG_NO_COMPARISON_WARNING_SUPPRESSION |
| 1559 | |
| 1560 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 1561 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 1562 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 1563 | |
| 1564 | #endif // DOCTEST_CONFIG_NO_COMPARISON_WARNING_SUPPRESSION |
| 1565 | |
| 1566 | #if DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! && DOCTEST_CLANGcxx . . $ `tests/thirdparty/doctest/doctest.h:89:9`! < DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(3, 6, 0) |
| 1567 | DOCTEST_CLANG_SUPPRESS_WARNING_POP |
| 1568 | #endif |
| 1569 | |
| 1570 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! ExpressionDecomposercxx . . $ doctest/detail/ExpressionDecomposer# |
| 1571 | { |
| 1572 | assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# m_atcxx . . $ doctest/detail/ExpressionDecomposer#m_at.; |
| 1573 | |
| 1574 | ExpressionDecomposercxx . . $ doctest/detail/ExpressionDecomposer#ExpressionDecomposer(f4fa529f8f884a0b).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at); |
| 1575 | |
| 1576 | // The right operator for capturing expressions is "<=" instead of "<<" (based on the operator precedence table) |
| 1577 | // but then there will be warnings from GCC about "-Wparentheses" and since "_Pragma()" is problematic this will stay for now... |
| 1578 | // https://github.com/catchorg/Catch2/issues/870 |
| 1579 | // https://github.com/catchorg/Catch2/issues/565 |
| 1580 | template <typename L> |
| 1581 | Expression_lhscxx . . $ doctest/detail/Expression_lhs#<L> operatorcxx . . $ doctest/detail/ExpressionDecomposer#`operator<<`(a5b484ab8fd0251c).<<(L&& operand) { |
| 1582 | return Expression_lhscxx . . $ doctest/detail/Expression_lhs#<L>(static_cast<L&&>(operand), m_atcxx . . $ doctest/detail/ExpressionDecomposer#m_at.); |
| 1583 | } |
| 1584 | |
| 1585 | template <typename L,typename typescxx . . $ doctest/detail/types/::enable_ifcxx . . $ doctest/detail/types/enable_if#<!doctest::detail::types::is_rvalue_reference<L>::value,void >::type* = nullptr> |
| 1586 | Expression_lhscxx . . $ doctest/detail/Expression_lhs#<const L&> operatorcxx . . $ doctest/detail/ExpressionDecomposer#`operator<<`(e495072dded11f28).<<(const L &operand) { |
| 1587 | return Expression_lhscxx . . $ doctest/detail/Expression_lhs#<const L&>(operand, m_atcxx . . $ doctest/detail/ExpressionDecomposer#m_at.); |
| 1588 | } |
| 1589 | }; |
| 1590 | |
| 1591 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestSuitecxx . . $ doctest/detail/TestSuite# |
| 1592 | { |
| 1593 | const char* m_test_suitecxx . . $ doctest/detail/TestSuite#m_test_suite. = nullptr; |
| 1594 | const char* m_descriptioncxx . . $ doctest/detail/TestSuite#m_description. = nullptr; |
| 1595 | bool m_skipcxx . . $ doctest/detail/TestSuite#m_skip. = false; |
| 1596 | bool m_no_breakscxx . . $ doctest/detail/TestSuite#m_no_breaks. = false; |
| 1597 | bool m_no_outputcxx . . $ doctest/detail/TestSuite#m_no_output. = false; |
| 1598 | bool m_may_failcxx . . $ doctest/detail/TestSuite#m_may_fail. = false; |
| 1599 | bool m_should_failcxx . . $ doctest/detail/TestSuite#m_should_fail. = false; |
| 1600 | int m_expected_failurescxx . . $ doctest/detail/TestSuite#m_expected_failures. = 0; |
| 1601 | double m_timeoutcxx . . $ doctest/detail/TestSuite#m_timeout. = 0; |
| 1602 | |
| 1603 | TestSuitecxx . . $ doctest/detail/TestSuite#& operatorcxx . . $ doctest/detail/TestSuite#`operator*`(3a199dafc7813329).*(const char* in); |
| 1604 | |
| 1605 | template <typename T> |
| 1606 | TestSuitecxx . . $ doctest/detail/TestSuite#& operatorcxx . . $ doctest/detail/TestSuite#`operator*`(81b74f962d6ff030).*(const T& in) { |
| 1607 | in.fill(*this); |
| 1608 | return *this; |
| 1609 | } |
| 1610 | }; |
| 1611 | |
| 1612 | using funcTypecxx . . $ doctest/detail/funcType# = void (*)(); |
| 1613 | |
| 1614 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestCasecxx . . $ doctest/detail/TestCase# : public TestCaseDatacxx . . $ doctest/TestCaseData# |
| 1615 | { |
| 1616 | funcTypecxx . . $ doctest/detail/funcType# m_testcxx . . $ doctest/detail/TestCase#m_test.; // a function pointer to the test case |
| 1617 | |
| 1618 | Stringcxx . . $ doctest/String# m_typecxx . . $ doctest/detail/TestCase#m_type.; // for templated test cases - gets appended to the real name |
| 1619 | int m_template_idcxx . . $ doctest/detail/TestCase#m_template_id.; // an ID used to distinguish between the different versions of a templated test case |
| 1620 | Stringcxx . . $ doctest/String# m_full_namecxx . . $ doctest/detail/TestCase#m_full_name.; // contains the name (only for templated test cases!) + the template type |
| 1621 | |
| 1622 | TestCasecxx . . $ doctest/detail/TestCase#TestCase(f16861b622be2a72).(funcTypecxx . . $ doctest/detail/funcType# test, const char* file, unsigned line, const TestSuitecxx . . $ doctest/detail/TestSuite#& test_suite, |
| 1623 | const Stringcxx . . $ doctest/String#& type = Stringcxx . . $ doctest/String#(), int template_id = -1); |
| 1624 | |
| 1625 | TestCasecxx . . $ doctest/detail/TestCase#TestCase(c4a62e2d35066111).(const TestCasecxx . . $ doctest/detail/TestCase#& other); |
| 1626 | TestCasecxx . . $ doctest/detail/TestCase#TestCase(353c7f2de14918ba).(TestCasecxx . . $ doctest/detail/TestCase#&&) = delete; |
| 1627 | |
| 1628 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(26434) // hides a non-virtual function |
| 1629 | TestCasecxx . . $ doctest/detail/TestCase#& operatorcxx . . $ doctest/detail/TestCase#`operator=`(5cffea4dc01ef505).=(const TestCasecxx . . $ doctest/detail/TestCase#& other); |
| 1630 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 1631 | |
| 1632 | TestCasecxx . . $ doctest/detail/TestCase#& operatorcxx . . $ doctest/detail/TestCase#`operator=`(3201c9fbe6df0e68).=(TestCasecxx . . $ doctest/detail/TestCase#&&) = delete; |
| 1633 | |
| 1634 | TestCasecxx . . $ doctest/detail/TestCase#& operatorcxx . . $ doctest/detail/TestCase#`operator*`(4186274a3cbb01fb).*(const char* in); |
| 1635 | |
| 1636 | template <typename T> |
| 1637 | TestCasecxx . . $ doctest/detail/TestCase#& operatorcxx . . $ doctest/detail/TestCase#`operator*`(d7e7fa1155752b24).*(const T& in) { |
| 1638 | in.fill(*this); |
| 1639 | return *this; |
| 1640 | } |
| 1641 | |
| 1642 | bool operatorcxx . . $ doctest/detail/TestCase#`operator<`(3d3bff0103d8bc90).<(const TestCasecxx . . $ doctest/detail/TestCase#& other) const; |
| 1643 | |
| 1644 | ~cxx . . $ doctest/detail/TestCase#`~TestCase`(ced63f7c635d850d).TestCasecxx . . $ doctest/detail/TestCase#() = default; |
| 1645 | }; |
| 1646 | |
| 1647 | // forward declarations of functions used by the macros |
| 1648 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! int regTestcxx . . $ doctest/detail/regTest(21fc9732bccf888f).(const TestCasecxx . . $ doctest/detail/TestCase#& tc); |
| 1649 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! int setTestSuitecxx . . $ doctest/detail/setTestSuite(1b519aedf1ee7d2c).(const TestSuitecxx . . $ doctest/detail/TestSuite#& ts); |
| 1650 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool isDebuggerActivecxx . . $ doctest/detail/isDebuggerActive(c9857a73d68e59ba).(); |
| 1651 | |
| 1652 | template<typename T> |
| 1653 | int instantiationHelpercxx . . $ doctest/detail/instantiationHelper(dd8e59d271e40448).(const T&) { return 0; } |
| 1654 | |
| 1655 | namespace binaryAssertComparisoncxx . . $ doctest/detail/binaryAssertComparison/ { |
| 1656 | enum Enumcxx . . $ doctest/detail/binaryAssertComparison/Enum# |
| 1657 | { |
| 1658 | eqcxx . . $ doctest/detail/binaryAssertComparison/eq. = 0, |
| 1659 | necxx . . $ doctest/detail/binaryAssertComparison/ne., |
| 1660 | gtcxx . . $ doctest/detail/binaryAssertComparison/gt., |
| 1661 | ltcxx . . $ doctest/detail/binaryAssertComparison/lt., |
| 1662 | gecxx . . $ doctest/detail/binaryAssertComparison/ge., |
| 1663 | lecxx . . $ doctest/detail/binaryAssertComparison/le. |
| 1664 | }; |
| 1665 | } // namespace binaryAssertComparison |
| 1666 | |
| 1667 | // clang-format off |
| 1668 | template <int, class L, class R> struct RelationalComparatorcxx . . $ doctest/detail/RelationalComparator# { bool operatorcxx . . $ doctest/detail/RelationalComparator#`operator()`(cbe48ec93577a8b4).()(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L), const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(R) ) const { return false; } }; |
| 1669 | |
| 1670 | #define DOCTEST_BINARY_RELATIONAL_OPcxx . . $ `tests/thirdparty/doctest/doctest.h:1670:9`!(n, op) \ |
| 1671 | template <class L, class R> struct RelationalComparator<n, L, R> { bool operator()(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) lhs, const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(R) rhs) const { return op(lhs, rhs); } }; |
| 1672 | // clang-format on |
| 1673 | |
| 1674 | DOCTEST_BINARY_RELATIONAL_OPcxx . . $ doctest/detail/eq(acb94948942028a1).(0, doctest::detail::eq) |
| 1675 | DOCTEST_BINARY_RELATIONAL_OPcxx . . $ doctest/detail/(1, doctest::detail::ne) |
| 1676 | DOCTEST_BINARY_RELATIONAL_OPcxx . . $ doctest/detail/(2, doctest::detail::gt) |
| 1677 | DOCTEST_BINARY_RELATIONAL_OPcxx . . $ doctest/(3, doctest::detail::lt) |
| 1678 | DOCTEST_BINARY_RELATIONAL_OPcxx . . $ doctest/detail/(4, doctest::detail::ge) |
| 1679 | DOCTEST_BINARY_RELATIONAL_OPcxx . . $ doctest/detail/RelationalComparator#(5, doctest::detail::le) |
| 1680 | |
| 1681 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! ResultBuildercxx . . $ doctest/detail/ResultBuilder# : public AssertDatacxx . . $ doctest/AssertData# |
| 1682 | { |
| 1683 | ResultBuildercxx . . $ doctest/detail/ResultBuilder#ResultBuilder(353d81b03526b2ec).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 1684 | const char* exception_type = "", const Stringcxx . . $ doctest/String#& exception_string = ""cxx . . $ doctest/String#String(85c52e162fed56f9).); |
| 1685 | |
| 1686 | ResultBuildercxx . . $ doctest/detail/ResultBuilder#ResultBuilder(34c78007d30b2b1e).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 1687 | const char* exception_type, const Containscxx . . $ doctest/Contains#& exception_string); |
| 1688 | |
| 1689 | void setResultcxx . . $ doctest/detail/ResultBuilder#setResult(f29171a175cb96a1).(const Resultcxx . . $ doctest/detail/Result#& res); |
| 1690 | |
| 1691 | template <int comparison, typename L, typename R> |
| 1692 | DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! bool binary_assertcxx . . $ doctest/detail/ResultBuilder#binary_assert(1ea4edfbe05190aa).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) lhs, |
| 1693 | const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(R) rhs) { |
| 1694 | m_failedcxx . . $ doctest/AssertData#m_failed. = !RelationalComparatorcxx . . $ doctest/detail/RelationalComparator#<comparison, L, R>()(lhs, rhs); |
| 1695 | if (m_failedcxx . . $ doctest/AssertData#m_failed. || getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->successcxx . . $ doctest/ContextOptions#success.) { |
| 1696 | m_decompcxx . . $ doctest/AssertData#m_decomp. = stringifyBinaryExprcxx . . $ doctest/detail/stringifyBinaryExpr(8752d9654361963e).(lhs, ", ", rhs); |
| 1697 | } |
| 1698 | return !m_failedcxx . . $ doctest/AssertData#m_failed.; |
| 1699 | } |
| 1700 | |
| 1701 | template <typename L> |
| 1702 | DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! bool unary_assertcxx . . $ doctest/detail/ResultBuilder#unary_assert(fe1ba53999e710f3).(const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) val) { |
| 1703 | m_failedcxx . . $ doctest/AssertData#m_failed. = !val; |
| 1704 | |
| 1705 | if (m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_falsecxx . . $ doctest/assertType/is_false.) { //!OCLINT bitwise operator in conditional |
| 1706 | m_failedcxx . . $ doctest/AssertData#m_failed. = !m_failedcxx . . $ doctest/AssertData#m_failed.; |
| 1707 | } |
| 1708 | |
| 1709 | if (m_failedcxx . . $ doctest/AssertData#m_failed. || getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->successcxx . . $ doctest/ContextOptions#success.) { |
| 1710 | m_decompcxx . . $ doctest/AssertData#m_decomp. = (DOCTEST_STRINGIFYcxx . . $ doctest/toString(2aec1de9e2361335).(val)); |
| 1711 | } |
| 1712 | |
| 1713 | return !m_failedcxx . . $ doctest/AssertData#m_failed.; |
| 1714 | } |
| 1715 | |
| 1716 | void translateExceptioncxx . . $ doctest/detail/ResultBuilder#translateException(49f6e7a06ebc5aa8).(); |
| 1717 | |
| 1718 | bool logcxx . . $ doctest/detail/ResultBuilder#log(c9857a73d68e59ba).(); |
| 1719 | void reactcxx . . $ doctest/detail/ResultBuilder#react(83f5f38750778ac8).() const; |
| 1720 | }; |
| 1721 | |
| 1722 | namespace assertActioncxx . . $ doctest/detail/assertAction/ { |
| 1723 | enum Enumcxx . . $ doctest/detail/assertAction/Enum# |
| 1724 | { |
| 1725 | nothingcxx . . $ doctest/detail/assertAction/nothing. = 0, |
| 1726 | dbgbreakcxx . . $ doctest/detail/assertAction/dbgbreak. = 1, |
| 1727 | shouldthrowcxx . . $ doctest/detail/assertAction/shouldthrow. = 2 |
| 1728 | }; |
| 1729 | } // namespace assertAction |
| 1730 | |
| 1731 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! void failed_out_of_a_testing_contextcxx . . $ doctest/detail/failed_out_of_a_testing_context(ce9da7727ef6fad1).(const AssertDatacxx . . $ doctest/AssertData#& ad); |
| 1732 | |
| 1733 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! bool decomp_assertcxx . . $ doctest/detail/decomp_assert(e1d5cd154d70ca2).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, |
| 1734 | const char* expr, const Resultcxx . . $ doctest/detail/Result#& result); |
| 1735 | |
| 1736 | #define DOCTEST_ASSERT_OUT_OF_TESTScxx . . $ `tests/thirdparty/doctest/doctest.h:1736:9`!(decomp) \ |
| 1737 | do { \ |
| 1738 | if(!is_running_in_test) { \ |
| 1739 | if(failed) { \ |
| 1740 | ResultBuilder rb(at, file, line, expr); \ |
| 1741 | rb.m_failed = failed; \ |
| 1742 | rb.m_decomp = decomp; \ |
| 1743 | failed_out_of_a_testing_context(rb); \ |
| 1744 | if(isDebuggerActive() && !getContextOptions()->no_breaks) \ |
| 1745 | DOCTEST_BREAK_INTO_DEBUGGERcxx . . $ `tests/thirdparty/doctest/doctest.h:460:9`!(); \ |
| 1746 | if(checkIfShouldThrow(at)) \ |
| 1747 | throwException(); \ |
| 1748 | } \ |
| 1749 | return !failed; \ |
| 1750 | } \ |
| 1751 | } while(false) |
| 1752 | |
| 1753 | #define DOCTEST_ASSERT_IN_TESTScxx . . $ `tests/thirdparty/doctest/doctest.h:1753:9`!(decomp) \ |
| 1754 | ResultBuilder rb(at, file, line, expr); \ |
| 1755 | rb.m_failed = failed; \ |
| 1756 | if(rb.m_failed || getContextOptions()->success) \ |
| 1757 | rb.m_decomp = decomp; \ |
| 1758 | if(rb.log()) \ |
| 1759 | DOCTEST_BREAK_INTO_DEBUGGERcxx . . $ `tests/thirdparty/doctest/doctest.h:460:9`!(); \ |
| 1760 | if(rb.m_failed && checkIfShouldThrow(at)) \ |
| 1761 | throwException() |
| 1762 | |
| 1763 | template <int comparison, typename L, typename R> |
| 1764 | DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! bool binary_assertcxx . . $ doctest/detail/binary_assert(c1c896a6eff943c7).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, |
| 1765 | const char* expr, const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) lhs, |
| 1766 | const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(R) rhs) { |
| 1767 | bool failed = !RelationalComparatorcxx . . $ doctest/detail/RelationalComparator#<comparison, L, R>()(lhs, rhs); |
| 1768 | |
| 1769 | // ################################################################################### |
| 1770 | // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT |
| 1771 | // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED |
| 1772 | // ################################################################################### |
| 1773 | DOCTEST_ASSERT_OUT_OF_TESTScxx . . $ doctest/detail/ResultBuilder#ResultBuilder(353d81b03526b2ec).(stringifyBinaryExpr(lhs, ", ", rhs)); |
| 1774 | DOCTEST_ASSERT_IN_TESTScxx . . $ `tests/thirdparty/doctest/doctest.h:1753:9`!(stringifyBinaryExpr(lhs, ", ", rhs)); |
| 1775 | return !failed; |
| 1776 | } |
| 1777 | |
| 1778 | template <typename L> |
| 1779 | DOCTEST_NOINLINEcxx . . $ `tests/thirdparty/doctest/doctest.h:358:9`! bool unary_assertcxx . . $ doctest/detail/unary_assert(e5813d3329b4e001).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, |
| 1780 | const char* expr, const DOCTEST_REF_WRAPcxx . . $ `tests/thirdparty/doctest/doctest.h:428:9`!(L) val) { |
| 1781 | bool failed = !val; |
| 1782 | |
| 1783 | if(at & assertTypecxx . . $ doctest/assertType/::is_falsecxx . . $ doctest/assertType/is_false.) //!OCLINT bitwise operator in conditional |
| 1784 | failed = !failed; |
| 1785 | |
| 1786 | // ################################################################################### |
| 1787 | // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT |
| 1788 | // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED |
| 1789 | // ################################################################################### |
| 1790 | DOCTEST_ASSERT_OUT_OF_TESTScxx . . $ doctest/toString(cab5051ee12c15d3).((DOCTEST_STRINGIFYcxx . . $ `tests/thirdparty/doctest/doctest.h:1088:9`!(val))); |
| 1791 | DOCTEST_ASSERT_IN_TESTScxx . . $ doctest/toString(cab5051ee12c15d3).((DOCTEST_STRINGIFYcxx . . $ `tests/thirdparty/doctest/doctest.h:1088:9`!(val))); |
| 1792 | return !failed; |
| 1793 | } |
| 1794 | |
| 1795 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! IExceptionTranslatorcxx . . $ doctest/detail/IExceptionTranslator# |
| 1796 | { |
| 1797 | DOCTEST_DECLARE_INTERFACEcxx . . $ doctest/detail/IExceptionTranslator#IExceptionTranslator(e7a52c81b8ac99d6).(IExceptionTranslator) |
| 1798 | virtual bool translatecxx . . $ doctest/detail/IExceptionTranslator#translate(75b8d91aa38c0d68).(Stringcxx . . $ doctest/String#&) const = 0; |
| 1799 | }; |
| 1800 | |
| 1801 | template <typename T> |
| 1802 | class ExceptionTranslatorcxx . . $ doctest/detail/ExceptionTranslator# : public IExceptionTranslatorcxx . . $ doctest/detail/IExceptionTranslator# //!OCLINT destructor of virtual class |
| 1803 | { |
| 1804 | public: |
| 1805 | explicit ExceptionTranslatorcxx . . $ doctest/detail/ExceptionTranslator#`ExceptionTranslator<T>`(e8d26e694799a8ec).(Stringcxx . . $ doctest/String# (*translateFunction)(T)) |
| 1806 | : m_translateFunctioncxx . . $ doctest/detail/ExceptionTranslator#m_translateFunction.(translateFunction) {} |
| 1807 | |
| 1808 | bool translatecxx . . $ doctest/detail/ExceptionTranslator#translate(75b8d91aa38c0d68).(Stringcxx . . $ doctest/String#& res) const override { |
| 1809 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 1810 | try { |
| 1811 | throw; // lgtm [cpp/rethrow-no-exception] |
| 1812 | // cppcheck-suppress catchExceptionByValue |
| 1813 | } catch(const T& ex) { |
| 1814 | res = m_translateFunctioncxx . . $ doctest/detail/ExceptionTranslator#m_translateFunction.(ex); //!OCLINT parameter reassignment |
| 1815 | return true; |
| 1816 | } catch(...) {} //!OCLINT - empty catch statement |
| 1817 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 1818 | static_cast<void>(res); // to silence -Wunused-parameter |
| 1819 | return false; |
| 1820 | } |
| 1821 | |
| 1822 | private: |
| 1823 | Stringcxx . . $ doctest/String# (*m_translateFunctioncxx . . $ doctest/detail/ExceptionTranslator#m_translateFunction.)(T); |
| 1824 | }; |
| 1825 | |
| 1826 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! void registerExceptionTranslatorImplcxx . . $ doctest/detail/registerExceptionTranslatorImpl(9c26d37c86eaabfb).(const IExceptionTranslatorcxx . . $ doctest/detail/IExceptionTranslator#* et); |
| 1827 | |
| 1828 | // ContextScope base class used to allow implementing methods of ContextScope |
| 1829 | // that don't depend on the template parameter in doctest.cpp. |
| 1830 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase# : public IContextScopecxx . . $ doctest/IContextScope# { |
| 1831 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#ContextScopeBase(4f547bd3e034bdaa).(const ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#&) = delete; |
| 1832 | |
| 1833 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#& operatorcxx . . $ doctest/detail/ContextScopeBase#`operator=`(15f1044158bb9475).=(const ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#&) = delete; |
| 1834 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#& operatorcxx . . $ doctest/detail/ContextScopeBase#`operator=`(e6361a10002d0da3).=(ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#&&) = delete; |
| 1835 | |
| 1836 | ~cxx . . $ doctest/detail/ContextScopeBase#`~ContextScopeBase`(49f6e7a06ebc5aa8).ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#() override = default; |
| 1837 | |
| 1838 | protected: |
| 1839 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#ContextScopeBase(49f6e7a06ebc5aa8).(); |
| 1840 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#ContextScopeBase(422fa576f11e7d47).(ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#&& other) noexcept; |
| 1841 | |
| 1842 | void destroycxx . . $ doctest/detail/ContextScopeBase#destroy(49f6e7a06ebc5aa8).(); |
| 1843 | bool need_to_destroycxx . . $ doctest/detail/ContextScopeBase#need_to_destroy.{true}; |
| 1844 | }; |
| 1845 | |
| 1846 | template <typename L> class ContextScopecxx . . $ doctest/detail/ContextScope# : public ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase# |
| 1847 | { |
| 1848 | L lambda_cxx . . $ doctest/detail/ContextScope#lambda_.; |
| 1849 | |
| 1850 | public: |
| 1851 | explicit ContextScopecxx . . $ doctest/detail/ContextScope#`ContextScope<L>`(77d9f17553126ecb).(const L &lambda) : lambda_cxx . . $ doctest/detail/ContextScope#lambda_.(lambda) {} |
| 1852 | explicit ContextScopecxx . . $ doctest/detail/ContextScope#`ContextScope<L>`(fe7a8a4d1eddb70).(L&& lambda) : lambda_cxx . . $ doctest/detail/ContextScope#lambda_.(static_cast<L&&>(lambda)) { } |
| 1853 | |
| 1854 | ContextScopecxx . . $ doctest/detail/ContextScope#`ContextScope<L>`(1d7ae4b171bd00e9).(const ContextScope&) = delete; |
| 1855 | ContextScopecxx . . $ doctest/detail/ContextScope#`ContextScope<L>`(22fdefbe91559cea).(ContextScope&&) noexcept = default; |
| 1856 | |
| 1857 | ContextScope& operatorcxx . . $ doctest/detail/ContextScope#`operator=`(532f9e050a860892).=(const ContextScope&) = delete; |
| 1858 | ContextScope& operatorcxx . . $ doctest/detail/ContextScope#`operator=`(e6c9b97ac6b61733).=(ContextScope&&) = delete; |
| 1859 | |
| 1860 | void stringifycxx . . $ doctest/detail/ContextScope#stringify(7b1875f5045e6781).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* s) const override { lambda_cxx . . $ doctest/detail/ContextScope#lambda_.(s); } |
| 1861 | |
| 1862 | ~cxx . . $ doctest/detail/ContextScope#`~ContextScope<L>`(49f6e7a06ebc5aa8).ContextScope() override { |
| 1863 | if (need_to_destroycxx . . $ doctest/detail/ContextScopeBase#need_to_destroy.) { |
| 1864 | destroycxx . . $ doctest/detail/ContextScopeBase#destroy(49f6e7a06ebc5aa8).(); |
| 1865 | } |
| 1866 | } |
| 1867 | }; |
| 1868 | |
| 1869 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! MessageBuildercxx . . $ doctest/detail/MessageBuilder# : public MessageDatacxx . . $ doctest/MessageData# |
| 1870 | { |
| 1871 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* m_streamcxx . . $ doctest/detail/MessageBuilder#m_stream.; |
| 1872 | bool loggedcxx . . $ doctest/detail/MessageBuilder#logged. = false; |
| 1873 | |
| 1874 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#MessageBuilder(cc335409aab0f199).(const char* file, int line, assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# severity); |
| 1875 | |
| 1876 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#MessageBuilder(e460e9440c6926ec).(const MessageBuildercxx . . $ doctest/detail/MessageBuilder#&) = delete; |
| 1877 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#MessageBuilder(e1a0e9b52f4b1035).(MessageBuildercxx . . $ doctest/detail/MessageBuilder#&&) = delete; |
| 1878 | |
| 1879 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#& operatorcxx . . $ doctest/detail/MessageBuilder#`operator=`(28a12ec6748826a2).=(const MessageBuildercxx . . $ doctest/detail/MessageBuilder#&) = delete; |
| 1880 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#& operatorcxx . . $ doctest/detail/MessageBuilder#`operator=`(1a3df2de46d192f5).=(MessageBuildercxx . . $ doctest/detail/MessageBuilder#&&) = delete; |
| 1881 | |
| 1882 | ~cxx . . $ doctest/detail/MessageBuilder#`~MessageBuilder`(ced63f7c635d850d).MessageBuildercxx . . $ doctest/detail/MessageBuilder#(); |
| 1883 | |
| 1884 | // the preferred way of chaining parameters for stringification |
| 1885 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4866) |
| 1886 | template <typename T> |
| 1887 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#& operatorcxx . . $ doctest/detail/MessageBuilder#`operator,`(18acf83d554d1d7b).,(const T& in) { |
| 1888 | *m_streamcxx . . $ doctest/detail/MessageBuilder#m_stream. << (DOCTEST_STRINGIFYcxx . . $ doctest/toString(6bbe65161bf1928a).(in)); |
| 1889 | return *this; |
| 1890 | } |
| 1891 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 1892 | |
| 1893 | // kept here just for backwards-compatibility - the comma operator should be preferred now |
| 1894 | template <typename T> |
| 1895 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#& operatorcxx . . $ doctest/detail/MessageBuilder#`operator<<`(18acf83d554d1d7b).<<(const T& in) { return this->operatorcxx . . $ doctest/detail/MessageBuilder#`operator,`(18acf83d554d1d7b).,(in); } |
| 1896 | |
| 1897 | // the `,` operator has the lowest operator precedence - if `<<` is used by the user then |
| 1898 | // the `,` operator will be called last which is not what we want and thus the `*` operator |
| 1899 | // is used first (has higher operator precedence compared to `<<`) so that we guarantee that |
| 1900 | // an operator of the MessageBuilder class is called first before the rest of the parameters |
| 1901 | template <typename T> |
| 1902 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#& operatorcxx . . $ doctest/detail/MessageBuilder#`operator*`(18acf83d554d1d7b).*(const T& in) { return this->operatorcxx . . $ doctest/detail/MessageBuilder#`operator,`(18acf83d554d1d7b).,(in); } |
| 1903 | |
| 1904 | bool logcxx . . $ doctest/detail/MessageBuilder#log(c9857a73d68e59ba).(); |
| 1905 | void reactcxx . . $ doctest/detail/MessageBuilder#react(49f6e7a06ebc5aa8).(); |
| 1906 | }; |
| 1907 | |
| 1908 | template <typename L> |
| 1909 | ContextScopecxx . . $ doctest/detail/ContextScope#<L> MakeContextScopecxx . . $ doctest/detail/MakeContextScope(3f991f4c78c553d4).(const L &lambda) { |
| 1910 | return ContextScopecxx . . $ doctest/detail/ContextScope#<L>(lambda); |
| 1911 | } |
| 1912 | } // namespace detail |
| 1913 | |
| 1914 | #define DOCTEST_DEFINE_DECORATORcxx . . $ `tests/thirdparty/doctest/doctest.h:1914:9`!(name, type, def) \ |
| 1915 | struct name \ |
| 1916 | { \ |
| 1917 | type data; \ |
| 1918 | name(type in = def) \ |
| 1919 | : data(in) {} \ |
| 1920 | void fill(detail::TestCase& state) const { state.DOCTEST_CATcxx . . $ `tests/thirdparty/doctest/doctest.h:420:9`!(m_, name) = data; } \ |
| 1921 | void fill(detail::TestSuite& state) const { state.DOCTEST_CATcxx . . $ `tests/thirdparty/doctest/doctest.h:420:9`!(m_, name) = data; } \ |
| 1922 | } |
| 1923 | |
| 1924 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/test_suite#fill(d413d6c22268a588).(test_suite, const char*, ""); |
| 1925 | DOCTEST_DEFINE_DECORATORcxx . . $ `tests/thirdparty/doctest/doctest.h:1914:9`!(description, const char*, ""); |
| 1926 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/skip#data.(skip, bool, true); |
| 1927 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/TestCaseData#m_no_breaks.(no_breaks, bool, true); |
| 1928 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/no_output#no_output(b45ddcbc8423892c).(no_output, bool, true); |
| 1929 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/detail/TestSuite#m_timeout.(timeout, double, 0); |
| 1930 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/may_fail#fill(d413d6c22268a588).(may_fail, bool, true); |
| 1931 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/detail/(should_fail, bool, true); |
| 1932 | DOCTEST_DEFINE_DECORATORcxx . . $ doctest/detail/TestSuite#m_expected_failures.(expected_failures, int, 0); |
| 1933 | |
| 1934 | template <typename T> |
| 1935 | int registerExceptionTranslatorcxx . . $ doctest/registerExceptionTranslator(60c541770a15976e).(Stringcxx . . $ doctest/String# (*translateFunction)(T)) { |
| 1936 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wexit-time-destructors") |
| 1937 | static detailcxx . . $ doctest/detail/::ExceptionTranslatorcxx . . $ doctest/detail/ExceptionTranslator#<T> exceptionTranslator(translateFunction); |
| 1938 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 1939 | detailcxx . . $ doctest/detail/::registerExceptionTranslatorImplcxx . . $ doctest/detail/registerExceptionTranslatorImpl(9c26d37c86eaabfb).(&exceptionTranslator); |
| 1940 | return 0; |
| 1941 | } |
| 1942 | |
| 1943 | } // namespace doctest |
| 1944 | |
| 1945 | // in a separate namespace outside of doctest because the DOCTEST_TEST_SUITE macro |
| 1946 | // introduces an anonymous namespace in which getCurrentTestSuite gets overridden |
| 1947 | namespace doctest_detail_test_suite_nscxx . . $ doctest_detail_test_suite_ns/ { |
| 1948 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! doctestcxx . . $ doctest/::detailcxx . . $ doctest/detail/::TestSuitecxx . . $ doctest/detail/TestSuite#& getCurrentTestSuitecxx . . $ doctest_detail_test_suite_ns/getCurrentTestSuite(135872ee19a66646).(); |
| 1949 | } // namespace doctest_detail_test_suite_ns |
| 1950 | |
| 1951 | namespace doctestcxx . . $ doctest/ { |
| 1952 | #else // DOCTEST_CONFIG_DISABLE |
| 1953 | template <typename T> |
| 1954 | int registerExceptionTranslator(String (*)(T)) { |
| 1955 | return 0; |
| 1956 | } |
| 1957 | #endif // DOCTEST_CONFIG_DISABLE |
| 1958 | |
| 1959 | namespace detailcxx . . $ doctest/detail/ { |
| 1960 | using assert_handlercxx . . $ doctest/detail/assert_handler# = void (*)(const AssertDatacxx . . $ doctest/AssertData#&); |
| 1961 | struct ContextStatecxx . . $ doctest/detail/ContextState#; |
| 1962 | } // namespace detail |
| 1963 | |
| 1964 | class DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! Contextcxx . . $ doctest/Context# |
| 1965 | { |
| 1966 | detailcxx . . $ doctest/detail/::ContextStatecxx . . $ doctest/detail/ContextState#* pcxx . . $ doctest/Context#p.; |
| 1967 | |
| 1968 | void parseArgscxx . . $ doctest/Context#parseArgs(af50656d8360ecdf).(int argc, const char* const* argv, bool withDefaults = false); |
| 1969 | |
| 1970 | public: |
| 1971 | explicit Contextcxx . . $ doctest/Context#Context(5151383285df94d8).(int argc = 0, const char* const* argv = nullptr); |
| 1972 | |
| 1973 | Contextcxx . . $ doctest/Context#Context(37d6c301a66ab350).(const Contextcxx . . $ doctest/Context#&) = delete; |
| 1974 | Contextcxx . . $ doctest/Context#Context(da8eef154d2cd79f).(Contextcxx . . $ doctest/Context#&&) = delete; |
| 1975 | |
| 1976 | Contextcxx . . $ doctest/Context#& operatorcxx . . $ doctest/Context#`operator=`(ce0cedb155208ac4).=(const Contextcxx . . $ doctest/Context#&) = delete; |
| 1977 | Contextcxx . . $ doctest/Context#& operatorcxx . . $ doctest/Context#`operator=`(182cffd923c968a9).=(Contextcxx . . $ doctest/Context#&&) = delete; |
| 1978 | |
| 1979 | ~cxx . . $ doctest/Context#`~Context`(ced63f7c635d850d).Contextcxx . . $ doctest/Context#(); // NOLINT(performance-trivially-destructible) |
| 1980 | |
| 1981 | void applyCommandLinecxx . . $ doctest/Context#applyCommandLine(5151383285df94d8).(int argc, const char* const* argv); |
| 1982 | |
| 1983 | void addFiltercxx . . $ doctest/Context#addFilter(2fa786934fe80e24).(const char* filter, const char* value); |
| 1984 | void clearFilterscxx . . $ doctest/Context#clearFilters(49f6e7a06ebc5aa8).(); |
| 1985 | void setOptioncxx . . $ doctest/Context#setOption(90ef5b561fbcb8de).(const char* option, bool value); |
| 1986 | void setOptioncxx . . $ doctest/Context#setOption(34d26762b42c433a).(const char* option, int value); |
| 1987 | void setOptioncxx . . $ doctest/Context#setOption(2fa786934fe80e24).(const char* option, const char* value); |
| 1988 | |
| 1989 | bool shouldExitcxx . . $ doctest/Context#shouldExit(c9857a73d68e59ba).(); |
| 1990 | |
| 1991 | void setAsDefaultForAssertsOutOfTestCasescxx . . $ doctest/Context#setAsDefaultForAssertsOutOfTestCases(49f6e7a06ebc5aa8).(); |
| 1992 | |
| 1993 | void setAssertHandlercxx . . $ doctest/Context#setAssertHandler(ece0fda6f1522492).(detailcxx . . $ doctest/detail/::assert_handlercxx . . $ doctest/detail/assert_handler# ah); |
| 1994 | |
| 1995 | void setCoutcxx . . $ doctest/Context#setCout(5d3481b062d90072).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* out); |
| 1996 | |
| 1997 | int runcxx . . $ doctest/Context#run(b126dc7c1de90089).(); |
| 1998 | }; |
| 1999 | |
| 2000 | namespace TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/ { |
| 2001 | enum Enumcxx . . $ doctest/TestCaseFailureReason/Enum# |
| 2002 | { |
| 2003 | Nonecxx . . $ doctest/TestCaseFailureReason/None. = 0, |
| 2004 | AssertFailurecxx . . $ doctest/TestCaseFailureReason/AssertFailure. = 1, // an assertion has failed in the test case |
| 2005 | Exceptioncxx . . $ doctest/TestCaseFailureReason/Exception. = 2, // test case threw an exception |
| 2006 | Crashcxx . . $ doctest/TestCaseFailureReason/Crash. = 4, // a crash... |
| 2007 | TooManyFailedAssertscxx . . $ doctest/TestCaseFailureReason/TooManyFailedAsserts. = 8, // the abort-after option |
| 2008 | Timeoutcxx . . $ doctest/TestCaseFailureReason/Timeout. = 16, // see the timeout decorator |
| 2009 | ShouldHaveFailedButDidntcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedButDidnt. = 32, // see the should_fail decorator |
| 2010 | ShouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedAndDid. = 64, // see the should_fail decorator |
| 2011 | DidntFailExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/DidntFailExactlyNumTimes. = 128, // see the expected_failures decorator |
| 2012 | FailedExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/FailedExactlyNumTimes. = 256, // see the expected_failures decorator |
| 2013 | CouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/CouldHaveFailedAndDid. = 512 // see the may_fail decorator |
| 2014 | }; |
| 2015 | } // namespace TestCaseFailureReason |
| 2016 | |
| 2017 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! CurrentTestCaseStatscxx . . $ doctest/CurrentTestCaseStats# |
| 2018 | { |
| 2019 | int numAssertsCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsCurrentTest.; |
| 2020 | int numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest.; |
| 2021 | double secondscxx . . $ doctest/CurrentTestCaseStats#seconds.; |
| 2022 | int failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags.; // use TestCaseFailureReason::Enum |
| 2023 | bool testCaseSuccesscxx . . $ doctest/CurrentTestCaseStats#testCaseSuccess.; |
| 2024 | }; |
| 2025 | |
| 2026 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestCaseExceptioncxx . . $ doctest/TestCaseException# |
| 2027 | { |
| 2028 | Stringcxx . . $ doctest/String# error_stringcxx . . $ doctest/TestCaseException#error_string.; |
| 2029 | bool is_crashcxx . . $ doctest/TestCaseException#is_crash.; |
| 2030 | }; |
| 2031 | |
| 2032 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! TestRunStatscxx . . $ doctest/TestRunStats# |
| 2033 | { |
| 2034 | unsigned numTestCasescxx . . $ doctest/TestRunStats#numTestCases.; |
| 2035 | unsigned numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.; |
| 2036 | unsigned numTestSuitesPassingFilterscxx . . $ doctest/TestRunStats#numTestSuitesPassingFilters.; |
| 2037 | unsigned numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed.; |
| 2038 | int numAssertscxx . . $ doctest/TestRunStats#numAsserts.; |
| 2039 | int numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed.; |
| 2040 | }; |
| 2041 | |
| 2042 | struct QueryDatacxx . . $ doctest/QueryData# |
| 2043 | { |
| 2044 | const TestRunStatscxx . . $ doctest/TestRunStats#* run_statscxx . . $ doctest/QueryData#run_stats. = nullptr; |
| 2045 | const TestCaseDatacxx . . $ doctest/TestCaseData#** datacxx . . $ doctest/QueryData#data. = nullptr; |
| 2046 | unsigned num_datacxx . . $ doctest/QueryData#num_data. = 0; |
| 2047 | }; |
| 2048 | |
| 2049 | struct DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! IReportercxx . . $ doctest/IReporter# |
| 2050 | { |
| 2051 | // The constructor has to accept "const ContextOptions&" as a single argument |
| 2052 | // which has most of the options for the run + a pointer to the stdout stream |
| 2053 | // Reporter(const ContextOptions& in) |
| 2054 | |
| 2055 | // called when a query should be reported (listing test cases, printing the version, etc.) |
| 2056 | virtual void report_querycxx . . $ doctest/IReporter#report_query(4c411912a5f64970).(const QueryDatacxx . . $ doctest/QueryData#&) = 0; |
| 2057 | |
| 2058 | // called when the whole test run starts |
| 2059 | virtual void test_run_startcxx . . $ doctest/IReporter#test_run_start(49f6e7a06ebc5aa8).() = 0; |
| 2060 | // called when the whole test run ends (caching a pointer to the input doesn't make sense here) |
| 2061 | virtual void test_run_endcxx . . $ doctest/IReporter#test_run_end(fd0a0441d5c4156).(const TestRunStatscxx . . $ doctest/TestRunStats#&) = 0; |
| 2062 | |
| 2063 | // called when a test case is started (safe to cache a pointer to the input) |
| 2064 | virtual void test_case_startcxx . . $ doctest/IReporter#test_case_start(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) = 0; |
| 2065 | // called when a test case is reentered because of unfinished subcases (safe to cache a pointer to the input) |
| 2066 | virtual void test_case_reentercxx . . $ doctest/IReporter#test_case_reenter(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) = 0; |
| 2067 | // called when a test case has ended |
| 2068 | virtual void test_case_endcxx . . $ doctest/IReporter#test_case_end(6ed55a504c9d530).(const CurrentTestCaseStatscxx . . $ doctest/CurrentTestCaseStats#&) = 0; |
| 2069 | |
| 2070 | // called when an exception is thrown from the test case (or it crashes) |
| 2071 | virtual void test_case_exceptioncxx . . $ doctest/IReporter#test_case_exception(ea977ac1bb71548f).(const TestCaseExceptioncxx . . $ doctest/TestCaseException#&) = 0; |
| 2072 | |
| 2073 | // called whenever a subcase is entered (don't cache pointers to the input) |
| 2074 | virtual void subcase_startcxx . . $ doctest/IReporter#subcase_start(2c57673d4de91813).(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#&) = 0; |
| 2075 | // called whenever a subcase is exited (don't cache pointers to the input) |
| 2076 | virtual void subcase_endcxx . . $ doctest/IReporter#subcase_end(49f6e7a06ebc5aa8).() = 0; |
| 2077 | |
| 2078 | // called for each assert (don't cache pointers to the input) |
| 2079 | virtual void log_assertcxx . . $ doctest/IReporter#log_assert(ce9da7727ef6fad1).(const AssertDatacxx . . $ doctest/AssertData#&) = 0; |
| 2080 | // called for each message (don't cache pointers to the input) |
| 2081 | virtual void log_messagecxx . . $ doctest/IReporter#log_message(e102a1222277320f).(const MessageDatacxx . . $ doctest/MessageData#&) = 0; |
| 2082 | |
| 2083 | // called when a test case is skipped either because it doesn't pass the filters, has a skip decorator |
| 2084 | // or isn't in the execution range (between first and last) (safe to cache a pointer to the input) |
| 2085 | virtual void test_case_skippedcxx . . $ doctest/IReporter#test_case_skipped(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) = 0; |
| 2086 | |
| 2087 | DOCTEST_DECLARE_INTERFACEcxx . . $ doctest/IReporter#IReporter(49f6e7a06ebc5aa8).(IReporter) |
| 2088 | |
| 2089 | // can obtain all currently active contexts and stringify them if one wishes to do so |
| 2090 | static int get_num_active_contextscxx . . $ doctest/IReporter#get_num_active_contexts(b126dc7c1de90089).(); |
| 2091 | static const IContextScopecxx . . $ doctest/IContextScope#* const* get_active_contextscxx . . $ doctest/IReporter#get_active_contexts(586ddb2bcccf74b2).(); |
| 2092 | |
| 2093 | // can iterate through contexts which have been stringified automatically in their destructors when an exception has been thrown |
| 2094 | static int get_num_stringified_contextscxx . . $ doctest/IReporter#get_num_stringified_contexts(b126dc7c1de90089).(); |
| 2095 | static const Stringcxx . . $ doctest/String#* get_stringified_contextscxx . . $ doctest/IReporter#get_stringified_contexts(9029b033df7d8e43).(); |
| 2096 | }; |
| 2097 | |
| 2098 | namespace detailcxx . . $ doctest/detail/ { |
| 2099 | using reporterCreatorFunccxx . . $ doctest/detail/reporterCreatorFunc# = IReportercxx . . $ doctest/IReporter#* (*)(const ContextOptionscxx . . $ doctest/ContextOptions#&); |
| 2100 | |
| 2101 | DOCTEST_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:334:9`! void registerReporterImplcxx . . $ doctest/detail/registerReporterImpl(d9974d660a00c0f2).(const char* name, int prio, reporterCreatorFunccxx . . $ doctest/detail/reporterCreatorFunc# c, bool isReporter); |
| 2102 | |
| 2103 | template <typename Reporter> |
| 2104 | IReportercxx . . $ doctest/IReporter#* reporterCreatorcxx . . $ doctest/detail/reporterCreator(f9c41234251f1121).(const ContextOptionscxx . . $ doctest/ContextOptions#& o) { |
| 2105 | return new Reporter(o); |
| 2106 | } |
| 2107 | } // namespace detail |
| 2108 | |
| 2109 | template <typename Reporter> |
| 2110 | int registerReportercxx . . $ doctest/registerReporter(ae173545ca504d7d).(const char* name, int priority, bool isReporter) { |
| 2111 | detailcxx . . $ doctest/detail/::registerReporterImplcxx . . $ doctest/detail/registerReporterImpl(d9974d660a00c0f2).(name, priority, detailcxx . . $ doctest/detail/::reporterCreatorcxx . . $ doctest/detail/reporterCreator(f9c41234251f1121).<Reporter>, isReporter); |
| 2112 | return 0; |
| 2113 | } |
| 2114 | } // namespace doctest |
| 2115 | |
| 2116 | #ifdef DOCTEST_CONFIG_ASSERTS_RETURN_VALUES |
| 2117 | #define DOCTEST_FUNC_EMPTY [] { return false; }() |
| 2118 | #else |
| 2119 | #define DOCTEST_FUNC_EMPTYcxx . . $ `tests/thirdparty/doctest/doctest.h:2119:9`! (void)0 |
| 2120 | #endif |
| 2121 | |
| 2122 | // if registering is not disabled |
| 2123 | #ifndef DOCTEST_CONFIG_DISABLE |
| 2124 | |
| 2125 | #ifdef DOCTEST_CONFIG_ASSERTS_RETURN_VALUES |
| 2126 | #define DOCTEST_FUNC_SCOPE_BEGIN [&] |
| 2127 | #define DOCTEST_FUNC_SCOPE_END () |
| 2128 | #define DOCTEST_FUNC_SCOPE_RET(v) return v |
| 2129 | #else |
| 2130 | #define DOCTEST_FUNC_SCOPE_BEGINcxx . . $ `tests/thirdparty/doctest/doctest.h:2130:9`! do |
| 2131 | #define DOCTEST_FUNC_SCOPE_ENDcxx . . $ `tests/thirdparty/doctest/doctest.h:2131:9`! while(false) |
| 2132 | #define DOCTEST_FUNC_SCOPE_RETcxx . . $ `tests/thirdparty/doctest/doctest.h:2132:9`!(v) (void)0 |
| 2133 | #endif |
| 2134 | |
| 2135 | // common code in asserts - for convenience |
| 2136 | #define DOCTEST_ASSERT_LOG_REACT_RETURNcxx . . $ `tests/thirdparty/doctest/doctest.h:2136:9`!(b) \ |
| 2137 | if(b.log()) DOCTEST_BREAK_INTO_DEBUGGER(); \ |
| 2138 | b.react(); \ |
| 2139 | DOCTEST_FUNC_SCOPE_RET(!b.m_failed) |
| 2140 | |
| 2141 | #ifdef DOCTEST_CONFIG_NO_TRY_CATCH_IN_ASSERTS |
| 2142 | #define DOCTEST_WRAP_IN_TRY(x) x; |
| 2143 | #else // DOCTEST_CONFIG_NO_TRY_CATCH_IN_ASSERTS |
| 2144 | #define DOCTEST_WRAP_IN_TRYcxx . . $ `tests/thirdparty/doctest/doctest.h:2144:9`!(x) \ |
| 2145 | try { \ |
| 2146 | x; \ |
| 2147 | } catch(...) { DOCTEST_RB.translateException(); } |
| 2148 | #endif // DOCTEST_CONFIG_NO_TRY_CATCH_IN_ASSERTS |
| 2149 | |
| 2150 | #ifdef DOCTEST_CONFIG_VOID_CAST_EXPRESSIONScxx . . $ `tests/thirdparty/doctest/doctest_compatibility.h:4:9`! |
| 2151 | #define DOCTEST_CAST_TO_VOIDcxx . . $ `tests/thirdparty/doctest/doctest.h:2151:9`!(...) \ |
| 2152 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wuseless-cast") \ |
| 2153 | static_cast<void>(__VA_ARGS__); \ |
| 2154 | DOCTEST_GCC_SUPPRESS_WARNING_POP |
| 2155 | #else // DOCTEST_CONFIG_VOID_CAST_EXPRESSIONS |
| 2156 | #define DOCTEST_CAST_TO_VOID(...) __VA_ARGS__; |
| 2157 | #endif // DOCTEST_CONFIG_VOID_CAST_EXPRESSIONS |
| 2158 | |
| 2159 | // registers the test by initializing a dummy var with a function |
| 2160 | #define DOCTEST_REGISTER_FUNCTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:2160:9`!(global_prefix, f, decorators) \ |
| 2161 | global_prefix DOCTEST_GLOBAL_NO_WARNINGScxx . . $ `tests/thirdparty/doctest/doctest.h:450:9`!(DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_VAR_), /* NOLINT */ \ |
| 2162 | doctest::detail::regTest( \ |
| 2163 | doctest::detail::TestCase( \ |
| 2164 | f, __FILE__, __LINE__, \ |
| 2165 | doctest_detail_test_suite_ns::getCurrentTestSuite()) * \ |
| 2166 | decorators)) |
| 2167 | |
| 2168 | #define DOCTEST_IMPLEMENT_FIXTUREcxx . . $ `tests/thirdparty/doctest/doctest.h:2168:9`!(der, base, func, decorators) \ |
| 2169 | namespace { /* NOLINT */ \ |
| 2170 | struct der : public base \ |
| 2171 | { \ |
| 2172 | void f(); \ |
| 2173 | }; \ |
| 2174 | static DOCTEST_INLINE_NOINLINE void func() { \ |
| 2175 | der v; \ |
| 2176 | v.f(); \ |
| 2177 | } \ |
| 2178 | DOCTEST_REGISTER_FUNCTION(DOCTEST_EMPTY, func, decorators) \ |
| 2179 | } \ |
| 2180 | DOCTEST_INLINE_NOINLINE void der::f() // NOLINT(misc-definitions-in-headers) |
| 2181 | |
| 2182 | #define DOCTEST_CREATE_AND_REGISTER_FUNCTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:2182:9`!(f, decorators) \ |
| 2183 | static void f(); \ |
| 2184 | DOCTEST_REGISTER_FUNCTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:2160:9`!(DOCTEST_EMPTYcxx . . $ `tests/thirdparty/doctest/doctest.h:347:9`!, f, decorators) \ |
| 2185 | static void f() |
| 2186 | |
| 2187 | #define DOCTEST_CREATE_AND_REGISTER_FUNCTION_IN_CLASScxx . . $ `tests/thirdparty/doctest/doctest.h:2187:9`!(f, proxy, decorators) \ |
| 2188 | static doctest::detail::funcType proxy() { return f; } \ |
| 2189 | DOCTEST_REGISTER_FUNCTION(inline, proxy(), decorators) \ |
| 2190 | static void f() |
| 2191 | |
| 2192 | // for registering tests |
| 2193 | #define DOCTEST_TEST_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:2193:9`!(decorators) \ |
| 2194 | DOCTEST_CREATE_AND_REGISTER_FUNCTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:2182:9`!(DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_FUNC_), decorators) |
| 2195 | |
| 2196 | // for registering tests in classes - requires C++17 for inline variables! |
| 2197 | #if DOCTEST_CPLUSPLUScxx . . $ `tests/thirdparty/doctest/doctest.h:74:9`! >= 201703L |
| 2198 | #define DOCTEST_TEST_CASE_CLASScxx . . $ `tests/thirdparty/doctest/doctest.h:2198:9`!(decorators) \ |
| 2199 | DOCTEST_CREATE_AND_REGISTER_FUNCTION_IN_CLASS(DOCTEST_ANONYMOUS(DOCTEST_ANON_FUNC_), \ |
| 2200 | DOCTEST_ANONYMOUS(DOCTEST_ANON_PROXY_), \ |
| 2201 | decorators) |
| 2202 | #else // DOCTEST_TEST_CASE_CLASS |
| 2203 | #define DOCTEST_TEST_CASE_CLASScxx . . $ `tests/thirdparty/doctest/doctest.h:2203:9`!(...) \ |
| 2204 | TEST_CASES_CAN_BE_REGISTERED_IN_CLASSES_ONLY_IN_CPP17_MODE_OR_WITH_VS_2017_OR_NEWER |
| 2205 | #endif // DOCTEST_TEST_CASE_CLASS |
| 2206 | |
| 2207 | // for registering tests with a fixture |
| 2208 | #define DOCTEST_TEST_CASE_FIXTUREcxx . . $ `tests/thirdparty/doctest/doctest.h:2208:9`!(c, decorators) \ |
| 2209 | DOCTEST_IMPLEMENT_FIXTURE(DOCTEST_ANONYMOUS(DOCTEST_ANON_CLASS_), c, \ |
| 2210 | DOCTEST_ANONYMOUS(DOCTEST_ANON_FUNC_), decorators) |
| 2211 | |
| 2212 | // for converting types to strings without the <typeinfo> header and demangling |
| 2213 | #define DOCTEST_TYPE_TO_STRING_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2213:9`!(str, ...) \ |
| 2214 | namespace doctest { \ |
| 2215 | template <> \ |
| 2216 | inline String toString<__VA_ARGS__>() { \ |
| 2217 | return str; \ |
| 2218 | } \ |
| 2219 | } \ |
| 2220 | static_assert(true, "") |
| 2221 | |
| 2222 | #define DOCTEST_TYPE_TO_STRINGcxx . . $ `tests/thirdparty/doctest/doctest.h:2222:9`!(...) DOCTEST_TYPE_TO_STRING_AS(#__VA_ARGS__, __VA_ARGS__) |
| 2223 | |
| 2224 | #define DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2224:9`!(dec, T, iter, func) \ |
| 2225 | template <typename T> \ |
| 2226 | static void func(); \ |
| 2227 | namespace { /* NOLINT */ \ |
| 2228 | template <typename Tuple> \ |
| 2229 | struct iter; \ |
| 2230 | template <typename Type, typename... Rest> \ |
| 2231 | struct iter<std::tuple<Type, Rest...>> \ |
| 2232 | { \ |
| 2233 | iter(const char* file, unsigned line, int index) { \ |
| 2234 | doctest::detail::regTest(doctest::detail::TestCase(func<Type>, file, line, \ |
| 2235 | doctest_detail_test_suite_ns::getCurrentTestSuite(), \ |
| 2236 | doctest::toString<Type>(), \ |
| 2237 | int(line) * 1000 + index) \ |
| 2238 | * dec); \ |
| 2239 | iter<std::tuple<Rest...>>(file, line, index + 1); \ |
| 2240 | } \ |
| 2241 | }; \ |
| 2242 | template <> \ |
| 2243 | struct iter<std::tuple<>> \ |
| 2244 | { \ |
| 2245 | iter(const char*, unsigned, int) {} \ |
| 2246 | }; \ |
| 2247 | } \ |
| 2248 | template <typename T> \ |
| 2249 | static void func() |
| 2250 | |
| 2251 | #define DOCTEST_TEST_CASE_TEMPLATE_DEFINEcxx . . $ `tests/thirdparty/doctest/doctest.h:2251:9`!(dec, T, id) \ |
| 2252 | DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, DOCTEST_CAT(id, ITERATOR), \ |
| 2253 | DOCTEST_ANONYMOUS(DOCTEST_ANON_TMP_)) |
| 2254 | |
| 2255 | #define DOCTEST_TEST_CASE_TEMPLATE_INSTANTIATE_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2255:9`!(id, anon, ...) \ |
| 2256 | DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_CAT(anon, DUMMY), /* NOLINT(cert-err58-cpp, fuchsia-statically-constructed-objects) */ \ |
| 2257 | doctest::detail::instantiationHelper( \ |
| 2258 | DOCTEST_CAT(id, ITERATOR)<__VA_ARGS__>(__FILE__, __LINE__, 0))) |
| 2259 | |
| 2260 | #define DOCTEST_TEST_CASE_TEMPLATE_INVOKEcxx . . $ `tests/thirdparty/doctest/doctest.h:2260:9`!(id, ...) \ |
| 2261 | DOCTEST_TEST_CASE_TEMPLATE_INSTANTIATE_IMPL(id, DOCTEST_ANONYMOUS(DOCTEST_ANON_TMP_), std::tuple<__VA_ARGS__>) \ |
| 2262 | static_assert(true, "") |
| 2263 | |
| 2264 | #define DOCTEST_TEST_CASE_TEMPLATE_APPLYcxx . . $ `tests/thirdparty/doctest/doctest.h:2264:9`!(id, ...) \ |
| 2265 | DOCTEST_TEST_CASE_TEMPLATE_INSTANTIATE_IMPL(id, DOCTEST_ANONYMOUS(DOCTEST_ANON_TMP_), __VA_ARGS__) \ |
| 2266 | static_assert(true, "") |
| 2267 | |
| 2268 | #define DOCTEST_TEST_CASE_TEMPLATE_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2268:9`!(dec, T, anon, ...) \ |
| 2269 | DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, DOCTEST_CAT(anon, ITERATOR), anon); \ |
| 2270 | DOCTEST_TEST_CASE_TEMPLATE_INSTANTIATE_IMPL(anon, anon, std::tuple<__VA_ARGS__>) \ |
| 2271 | template <typename T> \ |
| 2272 | static void anon() |
| 2273 | |
| 2274 | #define DOCTEST_TEST_CASE_TEMPLATEcxx . . $ `tests/thirdparty/doctest/doctest.h:2274:9`!(dec, T, ...) \ |
| 2275 | DOCTEST_TEST_CASE_TEMPLATE_IMPL(dec, T, DOCTEST_ANONYMOUS(DOCTEST_ANON_TMP_), __VA_ARGS__) |
| 2276 | |
| 2277 | // for subcases |
| 2278 | #define DOCTEST_SUBCASEcxx . . $ `tests/thirdparty/doctest/doctest.h:2278:9`!(name) \ |
| 2279 | if(const doctest::detail::Subcase & DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_SUBCASE_) DOCTEST_UNUSEDcxx . . $ `tests/thirdparty/doctest/doctest.h:359:9`! = \ |
| 2280 | doctest::detail::Subcase(name, __FILE__, __LINE__)) |
| 2281 | |
| 2282 | // for grouping tests in test suites by using code blocks |
| 2283 | #define DOCTEST_TEST_SUITE_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2283:9`!(decorators, ns_name) \ |
| 2284 | namespace ns_name { namespace doctest_detail_test_suite_ns { \ |
| 2285 | static DOCTEST_NOINLINE doctest::detail::TestSuite& getCurrentTestSuite() noexcept { \ |
| 2286 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4640) \ |
| 2287 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wexit-time-destructors") \ |
| 2288 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wmissing-field-initializers") \ |
| 2289 | static doctest::detail::TestSuite data{}; \ |
| 2290 | static bool inited = false; \ |
| 2291 | DOCTEST_MSVC_SUPPRESS_WARNING_POP \ |
| 2292 | DOCTEST_CLANG_SUPPRESS_WARNING_POP \ |
| 2293 | DOCTEST_GCC_SUPPRESS_WARNING_POP \ |
| 2294 | if(!inited) { \ |
| 2295 | data* decorators; \ |
| 2296 | inited = true; \ |
| 2297 | } \ |
| 2298 | return data; \ |
| 2299 | } \ |
| 2300 | } \ |
| 2301 | } \ |
| 2302 | namespace ns_name |
| 2303 | |
| 2304 | #define DOCTEST_TEST_SUITEcxx . . $ `tests/thirdparty/doctest/doctest.h:2304:9`!(decorators) \ |
| 2305 | DOCTEST_TEST_SUITE_IMPL(decorators, DOCTEST_ANONYMOUS(DOCTEST_ANON_SUITE_)) |
| 2306 | |
| 2307 | // for starting a testsuite block |
| 2308 | #define DOCTEST_TEST_SUITE_BEGINcxx . . $ `tests/thirdparty/doctest/doctest.h:2308:9`!(decorators) \ |
| 2309 | DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_ANONYMOUS(DOCTEST_ANON_VAR_), /* NOLINT(cert-err58-cpp) */ \ |
| 2310 | doctest::detail::setTestSuite(doctest::detail::TestSuite() * decorators)) \ |
| 2311 | static_assert(true, "") |
| 2312 | |
| 2313 | // for ending a testsuite block |
| 2314 | #define DOCTEST_TEST_SUITE_ENDcxx . . $ `tests/thirdparty/doctest/doctest.h:2314:9`! \ |
| 2315 | DOCTEST_GLOBAL_NO_WARNINGScxx . . $ `tests/thirdparty/doctest/doctest.h:450:9`!(DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_VAR_), /* NOLINT(cert-err58-cpp) */ \ |
| 2316 | doctest::detail::setTestSuite(doctest::detail::TestSuite() * "")) \ |
| 2317 | using DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_FOR_SEMICOLON_) = int |
| 2318 | |
| 2319 | // for registering exception translators |
| 2320 | #define DOCTEST_REGISTER_EXCEPTION_TRANSLATOR_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2320:9`!(translatorName, signature) \ |
| 2321 | inline doctest::String translatorName(signature); \ |
| 2322 | DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_ANONYMOUS(DOCTEST_ANON_TRANSLATOR_), /* NOLINT(cert-err58-cpp) */ \ |
| 2323 | doctest::registerExceptionTranslator(translatorName)) \ |
| 2324 | doctest::String translatorName(signature) |
| 2325 | |
| 2326 | #define DOCTEST_REGISTER_EXCEPTION_TRANSLATORcxx . . $ `tests/thirdparty/doctest/doctest.h:2326:9`!(signature) \ |
| 2327 | DOCTEST_REGISTER_EXCEPTION_TRANSLATOR_IMPL(DOCTEST_ANONYMOUS(DOCTEST_ANON_TRANSLATOR_), \ |
| 2328 | signature) |
| 2329 | |
| 2330 | // for registering reporters |
| 2331 | #define DOCTEST_REGISTER_REPORTERcxx . . $ `tests/thirdparty/doctest/doctest.h:2331:9`!(name, priority, reporter) \ |
| 2332 | DOCTEST_GLOBAL_NO_WARNINGScxx . . $ `tests/thirdparty/doctest/doctest.h:450:9`!(DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_REPORTER_), /* NOLINT(cert-err58-cpp) */ \ |
| 2333 | doctest::registerReporter<reporter>(name, priority, true)) \ |
| 2334 | static_assert(true, "") |
| 2335 | |
| 2336 | // for registering listeners |
| 2337 | #define DOCTEST_REGISTER_LISTENERcxx . . $ `tests/thirdparty/doctest/doctest.h:2337:9`!(name, priority, reporter) \ |
| 2338 | DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_ANONYMOUS(DOCTEST_ANON_REPORTER_), /* NOLINT(cert-err58-cpp) */ \ |
| 2339 | doctest::registerReporter<reporter>(name, priority, false)) \ |
| 2340 | static_assert(true, "") |
| 2341 | |
| 2342 | // clang-format off |
| 2343 | // for logging - disabling formatting because it's important to have these on 2 separate lines - see PR #557 |
| 2344 | #define DOCTEST_INFOcxx . . $ `tests/thirdparty/doctest/doctest.h:2344:9`!(...) \ |
| 2345 | DOCTEST_INFO_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2350:9`!(DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_CAPTURE_), \ |
| 2346 | DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_CAPTURE_OTHER_), \ |
| 2347 | __VA_ARGS__) |
| 2348 | // clang-format on |
| 2349 | |
| 2350 | #define DOCTEST_INFO_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2350:9`!(mb_name, s_name, ...) \ |
| 2351 | auto DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_CAPTURE_) = doctest::detail::MakeContextScope( \ |
| 2352 | [&](std::ostream* s_name) { \ |
| 2353 | doctest::detail::MessageBuilder mb_name(__FILE__, __LINE__, doctest::assertType::is_warn); \ |
| 2354 | mb_name.m_stream = s_name; \ |
| 2355 | mb_name * __VA_ARGS__; \ |
| 2356 | }) |
| 2357 | |
| 2358 | #define DOCTEST_CAPTUREcxx . . $ `tests/thirdparty/doctest/doctest.h:2358:9`!(x) DOCTEST_INFOcxx . . $ `tests/thirdparty/doctest/doctest.h:2344:9`!(#x " := ", x) |
| 2359 | |
| 2360 | #define DOCTEST_ADD_AT_IMPLcxx . . $ `tests/thirdparty/doctest/doctest.h:2360:9`!(type, file, line, mb, ...) \ |
| 2361 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2362 | doctest::detail::MessageBuilder mb(file, line, doctest::assertType::type); \ |
| 2363 | mb * __VA_ARGS__; \ |
| 2364 | if(mb.log()) \ |
| 2365 | DOCTEST_BREAK_INTO_DEBUGGER(); \ |
| 2366 | mb.react(); \ |
| 2367 | } DOCTEST_FUNC_SCOPE_END |
| 2368 | |
| 2369 | // clang-format off |
| 2370 | #define DOCTEST_ADD_MESSAGE_ATcxx . . $ `tests/thirdparty/doctest/doctest.h:2370:9`!(file, line, ...) DOCTEST_ADD_AT_IMPL(is_warn, file, line, DOCTEST_ANONYMOUS(DOCTEST_MESSAGE_), __VA_ARGS__) |
| 2371 | #define DOCTEST_ADD_FAIL_CHECK_ATcxx . . $ `tests/thirdparty/doctest/doctest.h:2371:9`!(file, line, ...) DOCTEST_ADD_AT_IMPL(is_check, file, line, DOCTEST_ANONYMOUS(DOCTEST_MESSAGE_), __VA_ARGS__) |
| 2372 | #define DOCTEST_ADD_FAIL_ATcxx . . $ `tests/thirdparty/doctest/doctest.h:2372:9`!(file, line, ...) DOCTEST_ADD_AT_IMPL(is_require, file, line, DOCTEST_ANONYMOUS(DOCTEST_MESSAGE_), __VA_ARGS__) |
| 2373 | // clang-format on |
| 2374 | |
| 2375 | #define DOCTEST_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2375:9`!(...) DOCTEST_ADD_MESSAGE_AT(__FILE__, __LINE__, __VA_ARGS__) |
| 2376 | #define DOCTEST_FAIL_CHECKcxx . . $ `tests/thirdparty/doctest/doctest.h:2376:9`!(...) DOCTEST_ADD_FAIL_CHECK_AT(__FILE__, __LINE__, __VA_ARGS__) |
| 2377 | #define DOCTEST_FAILcxx . . $ `tests/thirdparty/doctest/doctest.h:2377:9`!(...) DOCTEST_ADD_FAIL_AT(__FILE__, __LINE__, __VA_ARGS__) |
| 2378 | |
| 2379 | #define DOCTEST_TO_LVALUEcxx . . $ `tests/thirdparty/doctest/doctest.h:2379:9`!(...) __VA_ARGS__ // Not removed to keep backwards compatibility. |
| 2380 | |
| 2381 | #ifndef DOCTEST_CONFIG_SUPER_FAST_ASSERTScxx . . $ `<built-in>:480:9`! |
| 2382 | |
| 2383 | #define DOCTEST_ASSERT_IMPLEMENT_2(assert_type, ...) \ |
| 2384 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Woverloaded-shift-op-parentheses") \ |
| 2385 | /* NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) */ \ |
| 2386 | doctest::detail::ResultBuilder DOCTEST_RB(doctest::assertType::assert_type, __FILE__, \ |
| 2387 | __LINE__, #__VA_ARGS__); \ |
| 2388 | DOCTEST_WRAP_IN_TRY(DOCTEST_RB.setResult( \ |
| 2389 | doctest::detail::ExpressionDecomposer(doctest::assertType::assert_type) \ |
| 2390 | << __VA_ARGS__)) /* NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) */ \ |
| 2391 | DOCTEST_ASSERT_LOG_REACT_RETURN(DOCTEST_RB) \ |
| 2392 | DOCTEST_CLANG_SUPPRESS_WARNING_POP |
| 2393 | |
| 2394 | #define DOCTEST_ASSERT_IMPLEMENT_1(assert_type, ...) \ |
| 2395 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2396 | DOCTEST_ASSERT_IMPLEMENT_2(assert_type, __VA_ARGS__); \ |
| 2397 | } DOCTEST_FUNC_SCOPE_END // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks) |
| 2398 | |
| 2399 | #define DOCTEST_BINARY_ASSERT(assert_type, comp, ...) \ |
| 2400 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2401 | doctest::detail::ResultBuilder DOCTEST_RB(doctest::assertType::assert_type, __FILE__, \ |
| 2402 | __LINE__, #__VA_ARGS__); \ |
| 2403 | DOCTEST_WRAP_IN_TRY( \ |
| 2404 | DOCTEST_RB.binary_assert<doctest::detail::binaryAssertComparison::comp>( \ |
| 2405 | __VA_ARGS__)) \ |
| 2406 | DOCTEST_ASSERT_LOG_REACT_RETURN(DOCTEST_RB); \ |
| 2407 | } DOCTEST_FUNC_SCOPE_END |
| 2408 | |
| 2409 | #define DOCTEST_UNARY_ASSERT(assert_type, ...) \ |
| 2410 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2411 | doctest::detail::ResultBuilder DOCTEST_RB(doctest::assertType::assert_type, __FILE__, \ |
| 2412 | __LINE__, #__VA_ARGS__); \ |
| 2413 | DOCTEST_WRAP_IN_TRY(DOCTEST_RB.unary_assert(__VA_ARGS__)) \ |
| 2414 | DOCTEST_ASSERT_LOG_REACT_RETURN(DOCTEST_RB); \ |
| 2415 | } DOCTEST_FUNC_SCOPE_END |
| 2416 | |
| 2417 | #else // DOCTEST_CONFIG_SUPER_FAST_ASSERTS |
| 2418 | |
| 2419 | // necessary for <ASSERT>_MESSAGE |
| 2420 | #define DOCTEST_ASSERT_IMPLEMENT_2cxx . . $ `tests/thirdparty/doctest/doctest.h:2420:9`! DOCTEST_ASSERT_IMPLEMENT_1 |
| 2421 | |
| 2422 | #define DOCTEST_ASSERT_IMPLEMENT_1cxx . . $ `tests/thirdparty/doctest/doctest.h:2422:9`!(assert_type, ...) \ |
| 2423 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Woverloaded-shift-op-parentheses") \ |
| 2424 | doctest::detail::decomp_assert( \ |
| 2425 | doctest::assertType::assert_type, __FILE__, __LINE__, #__VA_ARGS__, \ |
| 2426 | doctest::detail::ExpressionDecomposer(doctest::assertType::assert_type) \ |
| 2427 | << __VA_ARGS__) DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 2428 | |
| 2429 | #define DOCTEST_BINARY_ASSERTcxx . . $ `tests/thirdparty/doctest/doctest.h:2429:9`!(assert_type, comparison, ...) \ |
| 2430 | doctest::detail::binary_assert<doctest::detail::binaryAssertComparison::comparison>( \ |
| 2431 | doctest::assertType::assert_type, __FILE__, __LINE__, #__VA_ARGS__, __VA_ARGS__) |
| 2432 | |
| 2433 | #define DOCTEST_UNARY_ASSERTcxx . . $ `tests/thirdparty/doctest/doctest.h:2433:9`!(assert_type, ...) \ |
| 2434 | doctest::detail::unary_assert(doctest::assertType::assert_type, __FILE__, __LINE__, \ |
| 2435 | #__VA_ARGS__, __VA_ARGS__) |
| 2436 | |
| 2437 | #endif // DOCTEST_CONFIG_SUPER_FAST_ASSERTS |
| 2438 | |
| 2439 | #define DOCTEST_WARNcxx . . $ `tests/thirdparty/doctest/doctest.h:2439:9`!(...) DOCTEST_ASSERT_IMPLEMENT_1(DT_WARN, __VA_ARGS__) |
| 2440 | #define DOCTEST_CHECKcxx . . $ `tests/thirdparty/doctest/doctest.h:2440:9`!(...) DOCTEST_ASSERT_IMPLEMENT_1cxx . . $ `tests/thirdparty/doctest/doctest.h:2422:9`!(DT_CHECK, __VA_ARGS__) |
| 2441 | #define DOCTEST_REQUIREcxx . . $ `tests/thirdparty/doctest/doctest.h:2441:9`!(...) DOCTEST_ASSERT_IMPLEMENT_1cxx . . $ `tests/thirdparty/doctest/doctest.h:2422:9`!(DT_REQUIRE, __VA_ARGS__) |
| 2442 | #define DOCTEST_WARN_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2442:9`!(...) DOCTEST_ASSERT_IMPLEMENT_1(DT_WARN_FALSE, __VA_ARGS__) |
| 2443 | #define DOCTEST_CHECK_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2443:9`!(...) DOCTEST_ASSERT_IMPLEMENT_1cxx . . $ `tests/thirdparty/doctest/doctest.h:2422:9`!(DT_CHECK_FALSE, __VA_ARGS__) |
| 2444 | #define DOCTEST_REQUIRE_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2444:9`!(...) DOCTEST_ASSERT_IMPLEMENT_1(DT_REQUIRE_FALSE, __VA_ARGS__) |
| 2445 | |
| 2446 | // clang-format off |
| 2447 | #define DOCTEST_WARN_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2447:9`!(cond, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_ASSERT_IMPLEMENT_2(DT_WARN, cond); } DOCTEST_FUNC_SCOPE_END |
| 2448 | #define DOCTEST_CHECK_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2448:9`!(cond, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_ASSERT_IMPLEMENT_2(DT_CHECK, cond); } DOCTEST_FUNC_SCOPE_END |
| 2449 | #define DOCTEST_REQUIRE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2449:9`!(cond, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_ASSERT_IMPLEMENT_2(DT_REQUIRE, cond); } DOCTEST_FUNC_SCOPE_END |
| 2450 | #define DOCTEST_WARN_FALSE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2450:9`!(cond, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_ASSERT_IMPLEMENT_2(DT_WARN_FALSE, cond); } DOCTEST_FUNC_SCOPE_END |
| 2451 | #define DOCTEST_CHECK_FALSE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2451:9`!(cond, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_ASSERT_IMPLEMENT_2(DT_CHECK_FALSE, cond); } DOCTEST_FUNC_SCOPE_END |
| 2452 | #define DOCTEST_REQUIRE_FALSE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2452:9`!(cond, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_ASSERT_IMPLEMENT_2(DT_REQUIRE_FALSE, cond); } DOCTEST_FUNC_SCOPE_END |
| 2453 | // clang-format on |
| 2454 | |
| 2455 | #define DOCTEST_WARN_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:2455:9`!(...) DOCTEST_BINARY_ASSERT(DT_WARN_EQ, eq, __VA_ARGS__) |
| 2456 | #define DOCTEST_CHECK_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:2456:9`!(...) DOCTEST_BINARY_ASSERT(DT_CHECK_EQ, eq, __VA_ARGS__) |
| 2457 | #define DOCTEST_REQUIRE_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:2457:9`!(...) DOCTEST_BINARY_ASSERT(DT_REQUIRE_EQ, eq, __VA_ARGS__) |
| 2458 | #define DOCTEST_WARN_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:2458:9`!(...) DOCTEST_BINARY_ASSERT(DT_WARN_NE, ne, __VA_ARGS__) |
| 2459 | #define DOCTEST_CHECK_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:2459:9`!(...) DOCTEST_BINARY_ASSERT(DT_CHECK_NE, ne, __VA_ARGS__) |
| 2460 | #define DOCTEST_REQUIRE_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:2460:9`!(...) DOCTEST_BINARY_ASSERT(DT_REQUIRE_NE, ne, __VA_ARGS__) |
| 2461 | #define DOCTEST_WARN_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:2461:9`!(...) DOCTEST_BINARY_ASSERT(DT_WARN_GT, gt, __VA_ARGS__) |
| 2462 | #define DOCTEST_CHECK_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:2462:9`!(...) DOCTEST_BINARY_ASSERT(DT_CHECK_GT, gt, __VA_ARGS__) |
| 2463 | #define DOCTEST_REQUIRE_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:2463:9`!(...) DOCTEST_BINARY_ASSERT(DT_REQUIRE_GT, gt, __VA_ARGS__) |
| 2464 | #define DOCTEST_WARN_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:2464:9`!(...) DOCTEST_BINARY_ASSERT(DT_WARN_LT, lt, __VA_ARGS__) |
| 2465 | #define DOCTEST_CHECK_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:2465:9`!(...) DOCTEST_BINARY_ASSERT(DT_CHECK_LT, lt, __VA_ARGS__) |
| 2466 | #define DOCTEST_REQUIRE_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:2466:9`!(...) DOCTEST_BINARY_ASSERT(DT_REQUIRE_LT, lt, __VA_ARGS__) |
| 2467 | #define DOCTEST_WARN_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:2467:9`!(...) DOCTEST_BINARY_ASSERT(DT_WARN_GE, ge, __VA_ARGS__) |
| 2468 | #define DOCTEST_CHECK_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:2468:9`!(...) DOCTEST_BINARY_ASSERT(DT_CHECK_GE, ge, __VA_ARGS__) |
| 2469 | #define DOCTEST_REQUIRE_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:2469:9`!(...) DOCTEST_BINARY_ASSERT(DT_REQUIRE_GE, ge, __VA_ARGS__) |
| 2470 | #define DOCTEST_WARN_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:2470:9`!(...) DOCTEST_BINARY_ASSERT(DT_WARN_LE, le, __VA_ARGS__) |
| 2471 | #define DOCTEST_CHECK_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:2471:9`!(...) DOCTEST_BINARY_ASSERT(DT_CHECK_LE, le, __VA_ARGS__) |
| 2472 | #define DOCTEST_REQUIRE_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:2472:9`!(...) DOCTEST_BINARY_ASSERT(DT_REQUIRE_LE, le, __VA_ARGS__) |
| 2473 | |
| 2474 | #define DOCTEST_WARN_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:2474:9`!(...) DOCTEST_UNARY_ASSERT(DT_WARN_UNARY, __VA_ARGS__) |
| 2475 | #define DOCTEST_CHECK_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:2475:9`!(...) DOCTEST_UNARY_ASSERT(DT_CHECK_UNARY, __VA_ARGS__) |
| 2476 | #define DOCTEST_REQUIRE_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:2476:9`!(...) DOCTEST_UNARY_ASSERT(DT_REQUIRE_UNARY, __VA_ARGS__) |
| 2477 | #define DOCTEST_WARN_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2477:9`!(...) DOCTEST_UNARY_ASSERT(DT_WARN_UNARY_FALSE, __VA_ARGS__) |
| 2478 | #define DOCTEST_CHECK_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2478:9`!(...) DOCTEST_UNARY_ASSERT(DT_CHECK_UNARY_FALSE, __VA_ARGS__) |
| 2479 | #define DOCTEST_REQUIRE_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2479:9`!(...) DOCTEST_UNARY_ASSERT(DT_REQUIRE_UNARY_FALSE, __VA_ARGS__) |
| 2480 | |
| 2481 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2482 | |
| 2483 | #define DOCTEST_ASSERT_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2483:9`!(expr, assert_type, message, ...) \ |
| 2484 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2485 | if(!doctest::getContextOptions()->no_throw) { \ |
| 2486 | doctest::detail::ResultBuilder DOCTEST_RB(doctest::assertType::assert_type, __FILE__, \ |
| 2487 | __LINE__, #expr, #__VA_ARGS__, message); \ |
| 2488 | try { \ |
| 2489 | DOCTEST_CAST_TO_VOID(expr) \ |
| 2490 | } catch(const typename doctest::detail::types::remove_const< \ |
| 2491 | typename doctest::detail::types::remove_reference<__VA_ARGS__>::type>::type&) {\ |
| 2492 | DOCTEST_RB.translateException(); \ |
| 2493 | DOCTEST_RB.m_threw_as = true; \ |
| 2494 | } catch(...) { DOCTEST_RB.translateException(); } \ |
| 2495 | DOCTEST_ASSERT_LOG_REACT_RETURN(DOCTEST_RB); \ |
| 2496 | } else { /* NOLINT(*-else-after-return) */ \ |
| 2497 | DOCTEST_FUNC_SCOPE_RET(false); \ |
| 2498 | } \ |
| 2499 | } DOCTEST_FUNC_SCOPE_END |
| 2500 | |
| 2501 | #define DOCTEST_ASSERT_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2501:9`!(expr, expr_str, assert_type, ...) \ |
| 2502 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2503 | if(!doctest::getContextOptions()->no_throw) { \ |
| 2504 | doctest::detail::ResultBuilder DOCTEST_RB(doctest::assertType::assert_type, __FILE__, \ |
| 2505 | __LINE__, expr_str, "", __VA_ARGS__); \ |
| 2506 | try { \ |
| 2507 | DOCTEST_CAST_TO_VOID(expr) \ |
| 2508 | } catch(...) { DOCTEST_RB.translateException(); } \ |
| 2509 | DOCTEST_ASSERT_LOG_REACT_RETURN(DOCTEST_RB); \ |
| 2510 | } else { /* NOLINT(*-else-after-return) */ \ |
| 2511 | DOCTEST_FUNC_SCOPE_RET(false); \ |
| 2512 | } \ |
| 2513 | } DOCTEST_FUNC_SCOPE_END |
| 2514 | |
| 2515 | #define DOCTEST_ASSERT_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2515:9`!(assert_type, ...) \ |
| 2516 | DOCTEST_FUNC_SCOPE_BEGIN { \ |
| 2517 | doctest::detail::ResultBuilder DOCTEST_RB(doctest::assertType::assert_type, __FILE__, \ |
| 2518 | __LINE__, #__VA_ARGS__); \ |
| 2519 | try { \ |
| 2520 | DOCTEST_CAST_TO_VOID(__VA_ARGS__) \ |
| 2521 | } catch(...) { DOCTEST_RB.translateException(); } \ |
| 2522 | DOCTEST_ASSERT_LOG_REACT_RETURN(DOCTEST_RB); \ |
| 2523 | } DOCTEST_FUNC_SCOPE_END |
| 2524 | |
| 2525 | // clang-format off |
| 2526 | #define DOCTEST_WARN_THROWScxx . . $ `tests/thirdparty/doctest/doctest.h:2526:9`!(...) DOCTEST_ASSERT_THROWS_WITH((__VA_ARGS__), #__VA_ARGS__, DT_WARN_THROWS, "") |
| 2527 | #define DOCTEST_CHECK_THROWScxx . . $ `tests/thirdparty/doctest/doctest.h:2527:9`!(...) DOCTEST_ASSERT_THROWS_WITH((__VA_ARGS__), #__VA_ARGS__, DT_CHECK_THROWS, "") |
| 2528 | #define DOCTEST_REQUIRE_THROWScxx . . $ `tests/thirdparty/doctest/doctest.h:2528:9`!(...) DOCTEST_ASSERT_THROWS_WITH((__VA_ARGS__), #__VA_ARGS__, DT_REQUIRE_THROWS, "") |
| 2529 | |
| 2530 | #define DOCTEST_WARN_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2530:9`!(expr, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_WARN_THROWS_AS, "", __VA_ARGS__) |
| 2531 | #define DOCTEST_CHECK_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2531:9`!(expr, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_CHECK_THROWS_AS, "", __VA_ARGS__) |
| 2532 | #define DOCTEST_REQUIRE_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2532:9`!(expr, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_REQUIRE_THROWS_AS, "", __VA_ARGS__) |
| 2533 | |
| 2534 | #define DOCTEST_WARN_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2534:9`!(expr, ...) DOCTEST_ASSERT_THROWS_WITH(expr, #expr, DT_WARN_THROWS_WITH, __VA_ARGS__) |
| 2535 | #define DOCTEST_CHECK_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2535:9`!(expr, ...) DOCTEST_ASSERT_THROWS_WITH(expr, #expr, DT_CHECK_THROWS_WITH, __VA_ARGS__) |
| 2536 | #define DOCTEST_REQUIRE_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2536:9`!(expr, ...) DOCTEST_ASSERT_THROWS_WITH(expr, #expr, DT_REQUIRE_THROWS_WITH, __VA_ARGS__) |
| 2537 | |
| 2538 | #define DOCTEST_WARN_THROWS_WITH_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2538:9`!(expr, message, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_WARN_THROWS_WITH_AS, message, __VA_ARGS__) |
| 2539 | #define DOCTEST_CHECK_THROWS_WITH_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2539:9`!(expr, message, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_CHECK_THROWS_WITH_AS, message, __VA_ARGS__) |
| 2540 | #define DOCTEST_REQUIRE_THROWS_WITH_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2540:9`!(expr, message, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_REQUIRE_THROWS_WITH_AS, message, __VA_ARGS__) |
| 2541 | |
| 2542 | #define DOCTEST_WARN_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2542:9`!(...) DOCTEST_ASSERT_NOTHROW(DT_WARN_NOTHROW, __VA_ARGS__) |
| 2543 | #define DOCTEST_CHECK_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2543:9`!(...) DOCTEST_ASSERT_NOTHROW(DT_CHECK_NOTHROW, __VA_ARGS__) |
| 2544 | #define DOCTEST_REQUIRE_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2544:9`!(...) DOCTEST_ASSERT_NOTHROW(DT_REQUIRE_NOTHROW, __VA_ARGS__) |
| 2545 | |
| 2546 | #define DOCTEST_WARN_THROWS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2546:9`!(expr, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_WARN_THROWS(expr); } DOCTEST_FUNC_SCOPE_END |
| 2547 | #define DOCTEST_CHECK_THROWS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2547:9`!(expr, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_CHECK_THROWS(expr); } DOCTEST_FUNC_SCOPE_END |
| 2548 | #define DOCTEST_REQUIRE_THROWS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2548:9`!(expr, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_REQUIRE_THROWS(expr); } DOCTEST_FUNC_SCOPE_END |
| 2549 | #define DOCTEST_WARN_THROWS_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2549:9`!(expr, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_WARN_THROWS_AS(expr, ex); } DOCTEST_FUNC_SCOPE_END |
| 2550 | #define DOCTEST_CHECK_THROWS_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2550:9`!(expr, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_CHECK_THROWS_AS(expr, ex); } DOCTEST_FUNC_SCOPE_END |
| 2551 | #define DOCTEST_REQUIRE_THROWS_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2551:9`!(expr, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_REQUIRE_THROWS_AS(expr, ex); } DOCTEST_FUNC_SCOPE_END |
| 2552 | #define DOCTEST_WARN_THROWS_WITH_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2552:9`!(expr, with, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_WARN_THROWS_WITH(expr, with); } DOCTEST_FUNC_SCOPE_END |
| 2553 | #define DOCTEST_CHECK_THROWS_WITH_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2553:9`!(expr, with, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_CHECK_THROWS_WITH(expr, with); } DOCTEST_FUNC_SCOPE_END |
| 2554 | #define DOCTEST_REQUIRE_THROWS_WITH_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2554:9`!(expr, with, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_REQUIRE_THROWS_WITH(expr, with); } DOCTEST_FUNC_SCOPE_END |
| 2555 | #define DOCTEST_WARN_THROWS_WITH_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2555:9`!(expr, with, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_WARN_THROWS_WITH_AS(expr, with, ex); } DOCTEST_FUNC_SCOPE_END |
| 2556 | #define DOCTEST_CHECK_THROWS_WITH_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2556:9`!(expr, with, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_CHECK_THROWS_WITH_AS(expr, with, ex); } DOCTEST_FUNC_SCOPE_END |
| 2557 | #define DOCTEST_REQUIRE_THROWS_WITH_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2557:9`!(expr, with, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_REQUIRE_THROWS_WITH_AS(expr, with, ex); } DOCTEST_FUNC_SCOPE_END |
| 2558 | #define DOCTEST_WARN_NOTHROW_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2558:9`!(expr, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_WARN_NOTHROW(expr); } DOCTEST_FUNC_SCOPE_END |
| 2559 | #define DOCTEST_CHECK_NOTHROW_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2559:9`!(expr, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_CHECK_NOTHROW(expr); } DOCTEST_FUNC_SCOPE_END |
| 2560 | #define DOCTEST_REQUIRE_NOTHROW_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2560:9`!(expr, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); DOCTEST_REQUIRE_NOTHROW(expr); } DOCTEST_FUNC_SCOPE_END |
| 2561 | // clang-format on |
| 2562 | |
| 2563 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2564 | |
| 2565 | // ================================================================================================= |
| 2566 | // == WHAT FOLLOWS IS VERSIONS OF THE MACROS THAT DO NOT DO ANY REGISTERING! == |
| 2567 | // == THIS CAN BE ENABLED BY DEFINING DOCTEST_CONFIG_DISABLE GLOBALLY! == |
| 2568 | // ================================================================================================= |
| 2569 | #else // DOCTEST_CONFIG_DISABLE |
| 2570 | |
| 2571 | #define DOCTEST_IMPLEMENT_FIXTURE(der, base, func, name) \ |
| 2572 | namespace /* NOLINT */ { \ |
| 2573 | template <typename DOCTEST_UNUSED_TEMPLATE_TYPE> \ |
| 2574 | struct der : public base \ |
| 2575 | { void f(); }; \ |
| 2576 | } \ |
| 2577 | template <typename DOCTEST_UNUSED_TEMPLATE_TYPE> \ |
| 2578 | inline void der<DOCTEST_UNUSED_TEMPLATE_TYPE>::f() |
| 2579 | |
| 2580 | #define DOCTEST_CREATE_AND_REGISTER_FUNCTION(f, name) \ |
| 2581 | template <typename DOCTEST_UNUSED_TEMPLATE_TYPE> \ |
| 2582 | static inline void f() |
| 2583 | |
| 2584 | // for registering tests |
| 2585 | #define DOCTEST_TEST_CASE(name) \ |
| 2586 | DOCTEST_CREATE_AND_REGISTER_FUNCTION(DOCTEST_ANONYMOUS(DOCTEST_ANON_FUNC_), name) |
| 2587 | |
| 2588 | // for registering tests in classes |
| 2589 | #define DOCTEST_TEST_CASE_CLASS(name) \ |
| 2590 | DOCTEST_CREATE_AND_REGISTER_FUNCTION(DOCTEST_ANONYMOUS(DOCTEST_ANON_FUNC_), name) |
| 2591 | |
| 2592 | // for registering tests with a fixture |
| 2593 | #define DOCTEST_TEST_CASE_FIXTURE(x, name) \ |
| 2594 | DOCTEST_IMPLEMENT_FIXTURE(DOCTEST_ANONYMOUS(DOCTEST_ANON_CLASS_), x, \ |
| 2595 | DOCTEST_ANONYMOUS(DOCTEST_ANON_FUNC_), name) |
| 2596 | |
| 2597 | // for converting types to strings without the <typeinfo> header and demangling |
| 2598 | #define DOCTEST_TYPE_TO_STRING_AS(str, ...) static_assert(true, "") |
| 2599 | #define DOCTEST_TYPE_TO_STRING(...) static_assert(true, "") |
| 2600 | |
| 2601 | // for typed tests |
| 2602 | #define DOCTEST_TEST_CASE_TEMPLATE(name, type, ...) \ |
| 2603 | template <typename type> \ |
| 2604 | inline void DOCTEST_ANONYMOUS(DOCTEST_ANON_TMP_)() |
| 2605 | |
| 2606 | #define DOCTEST_TEST_CASE_TEMPLATE_DEFINE(name, type, id) \ |
| 2607 | template <typename type> \ |
| 2608 | inline void DOCTEST_ANONYMOUS(DOCTEST_ANON_TMP_)() |
| 2609 | |
| 2610 | #define DOCTEST_TEST_CASE_TEMPLATE_INVOKE(id, ...) static_assert(true, "") |
| 2611 | #define DOCTEST_TEST_CASE_TEMPLATE_APPLY(id, ...) static_assert(true, "") |
| 2612 | |
| 2613 | // for subcases |
| 2614 | #define DOCTEST_SUBCASE(name) |
| 2615 | |
| 2616 | // for a testsuite block |
| 2617 | #define DOCTEST_TEST_SUITE(name) namespace // NOLINT |
| 2618 | |
| 2619 | // for starting a testsuite block |
| 2620 | #define DOCTEST_TEST_SUITE_BEGIN(name) static_assert(true, "") |
| 2621 | |
| 2622 | // for ending a testsuite block |
| 2623 | #define DOCTEST_TEST_SUITE_END using DOCTEST_ANONYMOUS(DOCTEST_ANON_FOR_SEMICOLON_) = int |
| 2624 | |
| 2625 | #define DOCTEST_REGISTER_EXCEPTION_TRANSLATOR(signature) \ |
| 2626 | template <typename DOCTEST_UNUSED_TEMPLATE_TYPE> \ |
| 2627 | static inline doctest::String DOCTEST_ANONYMOUS(DOCTEST_ANON_TRANSLATOR_)(signature) |
| 2628 | |
| 2629 | #define DOCTEST_REGISTER_REPORTER(name, priority, reporter) |
| 2630 | #define DOCTEST_REGISTER_LISTENER(name, priority, reporter) |
| 2631 | |
| 2632 | #define DOCTEST_INFO(...) (static_cast<void>(0)) |
| 2633 | #define DOCTEST_CAPTURE(x) (static_cast<void>(0)) |
| 2634 | #define DOCTEST_ADD_MESSAGE_AT(file, line, ...) (static_cast<void>(0)) |
| 2635 | #define DOCTEST_ADD_FAIL_CHECK_AT(file, line, ...) (static_cast<void>(0)) |
| 2636 | #define DOCTEST_ADD_FAIL_AT(file, line, ...) (static_cast<void>(0)) |
| 2637 | #define DOCTEST_MESSAGE(...) (static_cast<void>(0)) |
| 2638 | #define DOCTEST_FAIL_CHECK(...) (static_cast<void>(0)) |
| 2639 | #define DOCTEST_FAIL(...) (static_cast<void>(0)) |
| 2640 | |
| 2641 | #if defined(DOCTEST_CONFIG_EVALUATE_ASSERTS_EVEN_WHEN_DISABLED) \ |
| 2642 | && defined(DOCTEST_CONFIG_ASSERTS_RETURN_VALUES) |
| 2643 | |
| 2644 | #define DOCTEST_WARN(...) [&] { return __VA_ARGS__; }() |
| 2645 | #define DOCTEST_CHECK(...) [&] { return __VA_ARGS__; }() |
| 2646 | #define DOCTEST_REQUIRE(...) [&] { return __VA_ARGS__; }() |
| 2647 | #define DOCTEST_WARN_FALSE(...) [&] { return !(__VA_ARGS__); }() |
| 2648 | #define DOCTEST_CHECK_FALSE(...) [&] { return !(__VA_ARGS__); }() |
| 2649 | #define DOCTEST_REQUIRE_FALSE(...) [&] { return !(__VA_ARGS__); }() |
| 2650 | |
| 2651 | #define DOCTEST_WARN_MESSAGE(cond, ...) [&] { return cond; }() |
| 2652 | #define DOCTEST_CHECK_MESSAGE(cond, ...) [&] { return cond; }() |
| 2653 | #define DOCTEST_REQUIRE_MESSAGE(cond, ...) [&] { return cond; }() |
| 2654 | #define DOCTEST_WARN_FALSE_MESSAGE(cond, ...) [&] { return !(cond); }() |
| 2655 | #define DOCTEST_CHECK_FALSE_MESSAGE(cond, ...) [&] { return !(cond); }() |
| 2656 | #define DOCTEST_REQUIRE_FALSE_MESSAGE(cond, ...) [&] { return !(cond); }() |
| 2657 | |
| 2658 | namespace doctest { |
| 2659 | namespace detail { |
| 2660 | #define DOCTEST_RELATIONAL_OP(name, op) \ |
| 2661 | template <typename L, typename R> \ |
| 2662 | bool name(const DOCTEST_REF_WRAP(L) lhs, const DOCTEST_REF_WRAP(R) rhs) { return lhs op rhs; } |
| 2663 | |
| 2664 | DOCTEST_RELATIONAL_OP(eq, ==) |
| 2665 | DOCTEST_RELATIONAL_OP(ne, !=) |
| 2666 | DOCTEST_RELATIONAL_OP(lt, <) |
| 2667 | DOCTEST_RELATIONAL_OP(gt, >) |
| 2668 | DOCTEST_RELATIONAL_OP(le, <=) |
| 2669 | DOCTEST_RELATIONAL_OP(ge, >=) |
| 2670 | } // namespace detail |
| 2671 | } // namespace doctest |
| 2672 | |
| 2673 | #define DOCTEST_WARN_EQ(...) [&] { return doctest::detail::eq(__VA_ARGS__); }() |
| 2674 | #define DOCTEST_CHECK_EQ(...) [&] { return doctest::detail::eq(__VA_ARGS__); }() |
| 2675 | #define DOCTEST_REQUIRE_EQ(...) [&] { return doctest::detail::eq(__VA_ARGS__); }() |
| 2676 | #define DOCTEST_WARN_NE(...) [&] { return doctest::detail::ne(__VA_ARGS__); }() |
| 2677 | #define DOCTEST_CHECK_NE(...) [&] { return doctest::detail::ne(__VA_ARGS__); }() |
| 2678 | #define DOCTEST_REQUIRE_NE(...) [&] { return doctest::detail::ne(__VA_ARGS__); }() |
| 2679 | #define DOCTEST_WARN_LT(...) [&] { return doctest::detail::lt(__VA_ARGS__); }() |
| 2680 | #define DOCTEST_CHECK_LT(...) [&] { return doctest::detail::lt(__VA_ARGS__); }() |
| 2681 | #define DOCTEST_REQUIRE_LT(...) [&] { return doctest::detail::lt(__VA_ARGS__); }() |
| 2682 | #define DOCTEST_WARN_GT(...) [&] { return doctest::detail::gt(__VA_ARGS__); }() |
| 2683 | #define DOCTEST_CHECK_GT(...) [&] { return doctest::detail::gt(__VA_ARGS__); }() |
| 2684 | #define DOCTEST_REQUIRE_GT(...) [&] { return doctest::detail::gt(__VA_ARGS__); }() |
| 2685 | #define DOCTEST_WARN_LE(...) [&] { return doctest::detail::le(__VA_ARGS__); }() |
| 2686 | #define DOCTEST_CHECK_LE(...) [&] { return doctest::detail::le(__VA_ARGS__); }() |
| 2687 | #define DOCTEST_REQUIRE_LE(...) [&] { return doctest::detail::le(__VA_ARGS__); }() |
| 2688 | #define DOCTEST_WARN_GE(...) [&] { return doctest::detail::ge(__VA_ARGS__); }() |
| 2689 | #define DOCTEST_CHECK_GE(...) [&] { return doctest::detail::ge(__VA_ARGS__); }() |
| 2690 | #define DOCTEST_REQUIRE_GE(...) [&] { return doctest::detail::ge(__VA_ARGS__); }() |
| 2691 | #define DOCTEST_WARN_UNARY(...) [&] { return __VA_ARGS__; }() |
| 2692 | #define DOCTEST_CHECK_UNARY(...) [&] { return __VA_ARGS__; }() |
| 2693 | #define DOCTEST_REQUIRE_UNARY(...) [&] { return __VA_ARGS__; }() |
| 2694 | #define DOCTEST_WARN_UNARY_FALSE(...) [&] { return !(__VA_ARGS__); }() |
| 2695 | #define DOCTEST_CHECK_UNARY_FALSE(...) [&] { return !(__VA_ARGS__); }() |
| 2696 | #define DOCTEST_REQUIRE_UNARY_FALSE(...) [&] { return !(__VA_ARGS__); }() |
| 2697 | |
| 2698 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2699 | |
| 2700 | #define DOCTEST_WARN_THROWS_WITH(expr, with, ...) [] { static_assert(false, "Exception translation is not available when doctest is disabled."); return false; }() |
| 2701 | #define DOCTEST_CHECK_THROWS_WITH(expr, with, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2702 | #define DOCTEST_REQUIRE_THROWS_WITH(expr, with, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2703 | #define DOCTEST_WARN_THROWS_WITH_AS(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2704 | #define DOCTEST_CHECK_THROWS_WITH_AS(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2705 | #define DOCTEST_REQUIRE_THROWS_WITH_AS(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2706 | |
| 2707 | #define DOCTEST_WARN_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2708 | #define DOCTEST_CHECK_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2709 | #define DOCTEST_REQUIRE_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2710 | #define DOCTEST_WARN_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2711 | #define DOCTEST_CHECK_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2712 | #define DOCTEST_REQUIRE_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH(,,) |
| 2713 | |
| 2714 | #define DOCTEST_WARN_THROWS(...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() |
| 2715 | #define DOCTEST_CHECK_THROWS(...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() |
| 2716 | #define DOCTEST_REQUIRE_THROWS(...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() |
| 2717 | #define DOCTEST_WARN_THROWS_AS(expr, ...) [&] { try { expr; } catch (__VA_ARGS__) { return true; } catch (...) { } return false; }() |
| 2718 | #define DOCTEST_CHECK_THROWS_AS(expr, ...) [&] { try { expr; } catch (__VA_ARGS__) { return true; } catch (...) { } return false; }() |
| 2719 | #define DOCTEST_REQUIRE_THROWS_AS(expr, ...) [&] { try { expr; } catch (__VA_ARGS__) { return true; } catch (...) { } return false; }() |
| 2720 | #define DOCTEST_WARN_NOTHROW(...) [&] { try { __VA_ARGS__; return true; } catch (...) { return false; } }() |
| 2721 | #define DOCTEST_CHECK_NOTHROW(...) [&] { try { __VA_ARGS__; return true; } catch (...) { return false; } }() |
| 2722 | #define DOCTEST_REQUIRE_NOTHROW(...) [&] { try { __VA_ARGS__; return true; } catch (...) { return false; } }() |
| 2723 | |
| 2724 | #define DOCTEST_WARN_THROWS_MESSAGE(expr, ...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() |
| 2725 | #define DOCTEST_CHECK_THROWS_MESSAGE(expr, ...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() |
| 2726 | #define DOCTEST_REQUIRE_THROWS_MESSAGE(expr, ...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() |
| 2727 | #define DOCTEST_WARN_THROWS_AS_MESSAGE(expr, ex, ...) [&] { try { expr; } catch (__VA_ARGS__) { return true; } catch (...) { } return false; }() |
| 2728 | #define DOCTEST_CHECK_THROWS_AS_MESSAGE(expr, ex, ...) [&] { try { expr; } catch (__VA_ARGS__) { return true; } catch (...) { } return false; }() |
| 2729 | #define DOCTEST_REQUIRE_THROWS_AS_MESSAGE(expr, ex, ...) [&] { try { expr; } catch (__VA_ARGS__) { return true; } catch (...) { } return false; }() |
| 2730 | #define DOCTEST_WARN_NOTHROW_MESSAGE(expr, ...) [&] { try { __VA_ARGS__; return true; } catch (...) { return false; } }() |
| 2731 | #define DOCTEST_CHECK_NOTHROW_MESSAGE(expr, ...) [&] { try { __VA_ARGS__; return true; } catch (...) { return false; } }() |
| 2732 | #define DOCTEST_REQUIRE_NOTHROW_MESSAGE(expr, ...) [&] { try { __VA_ARGS__; return true; } catch (...) { return false; } }() |
| 2733 | |
| 2734 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2735 | |
| 2736 | #else // DOCTEST_CONFIG_EVALUATE_ASSERTS_EVEN_WHEN_DISABLED |
| 2737 | |
| 2738 | #define DOCTEST_WARN(...) DOCTEST_FUNC_EMPTY |
| 2739 | #define DOCTEST_CHECK(...) DOCTEST_FUNC_EMPTY |
| 2740 | #define DOCTEST_REQUIRE(...) DOCTEST_FUNC_EMPTY |
| 2741 | #define DOCTEST_WARN_FALSE(...) DOCTEST_FUNC_EMPTY |
| 2742 | #define DOCTEST_CHECK_FALSE(...) DOCTEST_FUNC_EMPTY |
| 2743 | #define DOCTEST_REQUIRE_FALSE(...) DOCTEST_FUNC_EMPTY |
| 2744 | |
| 2745 | #define DOCTEST_WARN_MESSAGE(cond, ...) DOCTEST_FUNC_EMPTY |
| 2746 | #define DOCTEST_CHECK_MESSAGE(cond, ...) DOCTEST_FUNC_EMPTY |
| 2747 | #define DOCTEST_REQUIRE_MESSAGE(cond, ...) DOCTEST_FUNC_EMPTY |
| 2748 | #define DOCTEST_WARN_FALSE_MESSAGE(cond, ...) DOCTEST_FUNC_EMPTY |
| 2749 | #define DOCTEST_CHECK_FALSE_MESSAGE(cond, ...) DOCTEST_FUNC_EMPTY |
| 2750 | #define DOCTEST_REQUIRE_FALSE_MESSAGE(cond, ...) DOCTEST_FUNC_EMPTY |
| 2751 | |
| 2752 | #define DOCTEST_WARN_EQ(...) DOCTEST_FUNC_EMPTY |
| 2753 | #define DOCTEST_CHECK_EQ(...) DOCTEST_FUNC_EMPTY |
| 2754 | #define DOCTEST_REQUIRE_EQ(...) DOCTEST_FUNC_EMPTY |
| 2755 | #define DOCTEST_WARN_NE(...) DOCTEST_FUNC_EMPTY |
| 2756 | #define DOCTEST_CHECK_NE(...) DOCTEST_FUNC_EMPTY |
| 2757 | #define DOCTEST_REQUIRE_NE(...) DOCTEST_FUNC_EMPTY |
| 2758 | #define DOCTEST_WARN_GT(...) DOCTEST_FUNC_EMPTY |
| 2759 | #define DOCTEST_CHECK_GT(...) DOCTEST_FUNC_EMPTY |
| 2760 | #define DOCTEST_REQUIRE_GT(...) DOCTEST_FUNC_EMPTY |
| 2761 | #define DOCTEST_WARN_LT(...) DOCTEST_FUNC_EMPTY |
| 2762 | #define DOCTEST_CHECK_LT(...) DOCTEST_FUNC_EMPTY |
| 2763 | #define DOCTEST_REQUIRE_LT(...) DOCTEST_FUNC_EMPTY |
| 2764 | #define DOCTEST_WARN_GE(...) DOCTEST_FUNC_EMPTY |
| 2765 | #define DOCTEST_CHECK_GE(...) DOCTEST_FUNC_EMPTY |
| 2766 | #define DOCTEST_REQUIRE_GE(...) DOCTEST_FUNC_EMPTY |
| 2767 | #define DOCTEST_WARN_LE(...) DOCTEST_FUNC_EMPTY |
| 2768 | #define DOCTEST_CHECK_LE(...) DOCTEST_FUNC_EMPTY |
| 2769 | #define DOCTEST_REQUIRE_LE(...) DOCTEST_FUNC_EMPTY |
| 2770 | |
| 2771 | #define DOCTEST_WARN_UNARY(...) DOCTEST_FUNC_EMPTY |
| 2772 | #define DOCTEST_CHECK_UNARY(...) DOCTEST_FUNC_EMPTY |
| 2773 | #define DOCTEST_REQUIRE_UNARY(...) DOCTEST_FUNC_EMPTY |
| 2774 | #define DOCTEST_WARN_UNARY_FALSE(...) DOCTEST_FUNC_EMPTY |
| 2775 | #define DOCTEST_CHECK_UNARY_FALSE(...) DOCTEST_FUNC_EMPTY |
| 2776 | #define DOCTEST_REQUIRE_UNARY_FALSE(...) DOCTEST_FUNC_EMPTY |
| 2777 | |
| 2778 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2779 | |
| 2780 | #define DOCTEST_WARN_THROWS(...) DOCTEST_FUNC_EMPTY |
| 2781 | #define DOCTEST_CHECK_THROWS(...) DOCTEST_FUNC_EMPTY |
| 2782 | #define DOCTEST_REQUIRE_THROWS(...) DOCTEST_FUNC_EMPTY |
| 2783 | #define DOCTEST_WARN_THROWS_AS(expr, ...) DOCTEST_FUNC_EMPTY |
| 2784 | #define DOCTEST_CHECK_THROWS_AS(expr, ...) DOCTEST_FUNC_EMPTY |
| 2785 | #define DOCTEST_REQUIRE_THROWS_AS(expr, ...) DOCTEST_FUNC_EMPTY |
| 2786 | #define DOCTEST_WARN_THROWS_WITH(expr, ...) DOCTEST_FUNC_EMPTY |
| 2787 | #define DOCTEST_CHECK_THROWS_WITH(expr, ...) DOCTEST_FUNC_EMPTY |
| 2788 | #define DOCTEST_REQUIRE_THROWS_WITH(expr, ...) DOCTEST_FUNC_EMPTY |
| 2789 | #define DOCTEST_WARN_THROWS_WITH_AS(expr, with, ...) DOCTEST_FUNC_EMPTY |
| 2790 | #define DOCTEST_CHECK_THROWS_WITH_AS(expr, with, ...) DOCTEST_FUNC_EMPTY |
| 2791 | #define DOCTEST_REQUIRE_THROWS_WITH_AS(expr, with, ...) DOCTEST_FUNC_EMPTY |
| 2792 | #define DOCTEST_WARN_NOTHROW(...) DOCTEST_FUNC_EMPTY |
| 2793 | #define DOCTEST_CHECK_NOTHROW(...) DOCTEST_FUNC_EMPTY |
| 2794 | #define DOCTEST_REQUIRE_NOTHROW(...) DOCTEST_FUNC_EMPTY |
| 2795 | |
| 2796 | #define DOCTEST_WARN_THROWS_MESSAGE(expr, ...) DOCTEST_FUNC_EMPTY |
| 2797 | #define DOCTEST_CHECK_THROWS_MESSAGE(expr, ...) DOCTEST_FUNC_EMPTY |
| 2798 | #define DOCTEST_REQUIRE_THROWS_MESSAGE(expr, ...) DOCTEST_FUNC_EMPTY |
| 2799 | #define DOCTEST_WARN_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_FUNC_EMPTY |
| 2800 | #define DOCTEST_CHECK_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_FUNC_EMPTY |
| 2801 | #define DOCTEST_REQUIRE_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_FUNC_EMPTY |
| 2802 | #define DOCTEST_WARN_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_FUNC_EMPTY |
| 2803 | #define DOCTEST_CHECK_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_FUNC_EMPTY |
| 2804 | #define DOCTEST_REQUIRE_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_FUNC_EMPTY |
| 2805 | #define DOCTEST_WARN_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_FUNC_EMPTY |
| 2806 | #define DOCTEST_CHECK_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_FUNC_EMPTY |
| 2807 | #define DOCTEST_REQUIRE_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_FUNC_EMPTY |
| 2808 | #define DOCTEST_WARN_NOTHROW_MESSAGE(expr, ...) DOCTEST_FUNC_EMPTY |
| 2809 | #define DOCTEST_CHECK_NOTHROW_MESSAGE(expr, ...) DOCTEST_FUNC_EMPTY |
| 2810 | #define DOCTEST_REQUIRE_NOTHROW_MESSAGE(expr, ...) DOCTEST_FUNC_EMPTY |
| 2811 | |
| 2812 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2813 | |
| 2814 | #endif // DOCTEST_CONFIG_EVALUATE_ASSERTS_EVEN_WHEN_DISABLED |
| 2815 | |
| 2816 | #endif // DOCTEST_CONFIG_DISABLE |
| 2817 | |
| 2818 | #ifdef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2819 | |
| 2820 | #ifdef DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS |
| 2821 | #define DOCTEST_EXCEPTION_EMPTY_FUNC DOCTEST_FUNC_EMPTY |
| 2822 | #else // DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS |
| 2823 | #define DOCTEST_EXCEPTION_EMPTY_FUNC [] { static_assert(false, "Exceptions are disabled! " \ |
| 2824 | "Use DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS if you want to compile with exceptions disabled."); return false; }() |
| 2825 | |
| 2826 | #undef DOCTEST_REQUIRE |
| 2827 | #undef DOCTEST_REQUIRE_FALSE |
| 2828 | #undef DOCTEST_REQUIRE_MESSAGE |
| 2829 | #undef DOCTEST_REQUIRE_FALSE_MESSAGE |
| 2830 | #undef DOCTEST_REQUIRE_EQ |
| 2831 | #undef DOCTEST_REQUIRE_NE |
| 2832 | #undef DOCTEST_REQUIRE_GT |
| 2833 | #undef DOCTEST_REQUIRE_LT |
| 2834 | #undef DOCTEST_REQUIRE_GE |
| 2835 | #undef DOCTEST_REQUIRE_LE |
| 2836 | #undef DOCTEST_REQUIRE_UNARY |
| 2837 | #undef DOCTEST_REQUIRE_UNARY_FALSE |
| 2838 | |
| 2839 | #define DOCTEST_REQUIRE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2840 | #define DOCTEST_REQUIRE_FALSE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2841 | #define DOCTEST_REQUIRE_MESSAGE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2842 | #define DOCTEST_REQUIRE_FALSE_MESSAGE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2843 | #define DOCTEST_REQUIRE_EQ DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2844 | #define DOCTEST_REQUIRE_NE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2845 | #define DOCTEST_REQUIRE_GT DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2846 | #define DOCTEST_REQUIRE_LT DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2847 | #define DOCTEST_REQUIRE_GE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2848 | #define DOCTEST_REQUIRE_LE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2849 | #define DOCTEST_REQUIRE_UNARY DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2850 | #define DOCTEST_REQUIRE_UNARY_FALSE DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2851 | |
| 2852 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS |
| 2853 | |
| 2854 | #define DOCTEST_WARN_THROWS(...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2855 | #define DOCTEST_CHECK_THROWS(...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2856 | #define DOCTEST_REQUIRE_THROWS(...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2857 | #define DOCTEST_WARN_THROWS_AS(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2858 | #define DOCTEST_CHECK_THROWS_AS(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2859 | #define DOCTEST_REQUIRE_THROWS_AS(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2860 | #define DOCTEST_WARN_THROWS_WITH(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2861 | #define DOCTEST_CHECK_THROWS_WITH(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2862 | #define DOCTEST_REQUIRE_THROWS_WITH(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2863 | #define DOCTEST_WARN_THROWS_WITH_AS(expr, with, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2864 | #define DOCTEST_CHECK_THROWS_WITH_AS(expr, with, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2865 | #define DOCTEST_REQUIRE_THROWS_WITH_AS(expr, with, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2866 | #define DOCTEST_WARN_NOTHROW(...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2867 | #define DOCTEST_CHECK_NOTHROW(...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2868 | #define DOCTEST_REQUIRE_NOTHROW(...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2869 | |
| 2870 | #define DOCTEST_WARN_THROWS_MESSAGE(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2871 | #define DOCTEST_CHECK_THROWS_MESSAGE(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2872 | #define DOCTEST_REQUIRE_THROWS_MESSAGE(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2873 | #define DOCTEST_WARN_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2874 | #define DOCTEST_CHECK_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2875 | #define DOCTEST_REQUIRE_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2876 | #define DOCTEST_WARN_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2877 | #define DOCTEST_CHECK_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2878 | #define DOCTEST_REQUIRE_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2879 | #define DOCTEST_WARN_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2880 | #define DOCTEST_CHECK_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2881 | #define DOCTEST_REQUIRE_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2882 | #define DOCTEST_WARN_NOTHROW_MESSAGE(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2883 | #define DOCTEST_CHECK_NOTHROW_MESSAGE(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2884 | #define DOCTEST_REQUIRE_NOTHROW_MESSAGE(expr, ...) DOCTEST_EXCEPTION_EMPTY_FUNC |
| 2885 | |
| 2886 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 2887 | |
| 2888 | // clang-format off |
| 2889 | // KEPT FOR BACKWARDS COMPATIBILITY - FORWARDING TO THE RIGHT MACROS |
| 2890 | #define DOCTEST_FAST_WARN_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:2890:9`! DOCTEST_WARN_EQ |
| 2891 | #define DOCTEST_FAST_CHECK_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:2891:9`! DOCTEST_CHECK_EQ |
| 2892 | #define DOCTEST_FAST_REQUIRE_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:2892:9`! DOCTEST_REQUIRE_EQ |
| 2893 | #define DOCTEST_FAST_WARN_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:2893:9`! DOCTEST_WARN_NE |
| 2894 | #define DOCTEST_FAST_CHECK_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:2894:9`! DOCTEST_CHECK_NE |
| 2895 | #define DOCTEST_FAST_REQUIRE_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:2895:9`! DOCTEST_REQUIRE_NE |
| 2896 | #define DOCTEST_FAST_WARN_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:2896:9`! DOCTEST_WARN_GT |
| 2897 | #define DOCTEST_FAST_CHECK_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:2897:9`! DOCTEST_CHECK_GT |
| 2898 | #define DOCTEST_FAST_REQUIRE_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:2898:9`! DOCTEST_REQUIRE_GT |
| 2899 | #define DOCTEST_FAST_WARN_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:2899:9`! DOCTEST_WARN_LT |
| 2900 | #define DOCTEST_FAST_CHECK_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:2900:9`! DOCTEST_CHECK_LT |
| 2901 | #define DOCTEST_FAST_REQUIRE_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:2901:9`! DOCTEST_REQUIRE_LT |
| 2902 | #define DOCTEST_FAST_WARN_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:2902:9`! DOCTEST_WARN_GE |
| 2903 | #define DOCTEST_FAST_CHECK_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:2903:9`! DOCTEST_CHECK_GE |
| 2904 | #define DOCTEST_FAST_REQUIRE_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:2904:9`! DOCTEST_REQUIRE_GE |
| 2905 | #define DOCTEST_FAST_WARN_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:2905:9`! DOCTEST_WARN_LE |
| 2906 | #define DOCTEST_FAST_CHECK_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:2906:9`! DOCTEST_CHECK_LE |
| 2907 | #define DOCTEST_FAST_REQUIRE_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:2907:9`! DOCTEST_REQUIRE_LE |
| 2908 | |
| 2909 | #define DOCTEST_FAST_WARN_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:2909:9`! DOCTEST_WARN_UNARY |
| 2910 | #define DOCTEST_FAST_CHECK_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:2910:9`! DOCTEST_CHECK_UNARY |
| 2911 | #define DOCTEST_FAST_REQUIRE_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:2911:9`! DOCTEST_REQUIRE_UNARY |
| 2912 | #define DOCTEST_FAST_WARN_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2912:9`! DOCTEST_WARN_UNARY_FALSE |
| 2913 | #define DOCTEST_FAST_CHECK_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2913:9`! DOCTEST_CHECK_UNARY_FALSE |
| 2914 | #define DOCTEST_FAST_REQUIRE_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2914:9`! DOCTEST_REQUIRE_UNARY_FALSE |
| 2915 | |
| 2916 | #define DOCTEST_TEST_CASE_TEMPLATE_INSTANTIATEcxx . . $ `tests/thirdparty/doctest/doctest.h:2916:9`!(id, ...) DOCTEST_TEST_CASE_TEMPLATE_INVOKE(id,__VA_ARGS__) |
| 2917 | // clang-format on |
| 2918 | |
| 2919 | // BDD style macros |
| 2920 | // clang-format off |
| 2921 | #define DOCTEST_SCENARIOcxx . . $ `tests/thirdparty/doctest/doctest.h:2921:9`!(name) DOCTEST_TEST_CASE(" Scenario: " name) |
| 2922 | #define DOCTEST_SCENARIO_CLASScxx . . $ `tests/thirdparty/doctest/doctest.h:2922:9`!(name) DOCTEST_TEST_CASE_CLASS(" Scenario: " name) |
| 2923 | #define DOCTEST_SCENARIO_TEMPLATEcxx . . $ `tests/thirdparty/doctest/doctest.h:2923:9`!(name, T, ...) DOCTEST_TEST_CASE_TEMPLATE(" Scenario: " name, T, __VA_ARGS__) |
| 2924 | #define DOCTEST_SCENARIO_TEMPLATE_DEFINEcxx . . $ `tests/thirdparty/doctest/doctest.h:2924:9`!(name, T, id) DOCTEST_TEST_CASE_TEMPLATE_DEFINE(" Scenario: " name, T, id) |
| 2925 | |
| 2926 | #define DOCTEST_GIVENcxx . . $ `tests/thirdparty/doctest/doctest.h:2926:9`!(name) DOCTEST_SUBCASE(" Given: " name) |
| 2927 | #define DOCTEST_WHENcxx . . $ `tests/thirdparty/doctest/doctest.h:2927:9`!(name) DOCTEST_SUBCASE(" When: " name) |
| 2928 | #define DOCTEST_AND_WHENcxx . . $ `tests/thirdparty/doctest/doctest.h:2928:9`!(name) DOCTEST_SUBCASE("And when: " name) |
| 2929 | #define DOCTEST_THENcxx . . $ `tests/thirdparty/doctest/doctest.h:2929:9`!(name) DOCTEST_SUBCASE(" Then: " name) |
| 2930 | #define DOCTEST_AND_THENcxx . . $ `tests/thirdparty/doctest/doctest.h:2930:9`!(name) DOCTEST_SUBCASE(" And: " name) |
| 2931 | // clang-format on |
| 2932 | |
| 2933 | // == SHORT VERSIONS OF THE MACROS |
| 2934 | #ifndef DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES |
| 2935 | |
| 2936 | #define TEST_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:2936:9`!(name) DOCTEST_TEST_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:2193:9`!(name) |
| 2937 | #define TEST_CASE_CLASScxx . . $ `tests/thirdparty/doctest/doctest.h:2937:9`!(name) DOCTEST_TEST_CASE_CLASS(name) |
| 2938 | #define TEST_CASE_FIXTUREcxx . . $ `tests/thirdparty/doctest/doctest.h:2938:9`!(x, name) DOCTEST_TEST_CASE_FIXTURE(x, name) |
| 2939 | #define TYPE_TO_STRING_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2939:9`!(str, ...) DOCTEST_TYPE_TO_STRING_AS(str, __VA_ARGS__) |
| 2940 | #define TYPE_TO_STRINGcxx . . $ `tests/thirdparty/doctest/doctest.h:2940:9`!(...) DOCTEST_TYPE_TO_STRING(__VA_ARGS__) |
| 2941 | #define TEST_CASE_TEMPLATEcxx . . $ `tests/thirdparty/doctest/doctest.h:2941:9`!(name, T, ...) DOCTEST_TEST_CASE_TEMPLATE(name, T, __VA_ARGS__) |
| 2942 | #define TEST_CASE_TEMPLATE_DEFINEcxx . . $ `tests/thirdparty/doctest/doctest.h:2942:9`!(name, T, id) DOCTEST_TEST_CASE_TEMPLATE_DEFINE(name, T, id) |
| 2943 | #define TEST_CASE_TEMPLATE_INVOKEcxx . . $ `tests/thirdparty/doctest/doctest.h:2943:9`!(id, ...) DOCTEST_TEST_CASE_TEMPLATE_INVOKE(id, __VA_ARGS__) |
| 2944 | #define TEST_CASE_TEMPLATE_APPLYcxx . . $ `tests/thirdparty/doctest/doctest.h:2944:9`!(id, ...) DOCTEST_TEST_CASE_TEMPLATE_APPLY(id, __VA_ARGS__) |
| 2945 | #define SUBCASEcxx . . $ `tests/thirdparty/doctest/doctest.h:2945:9`!(name) DOCTEST_SUBCASE(name) |
| 2946 | #define TEST_SUITEcxx . . $ `tests/thirdparty/doctest/doctest.h:2946:9`!(decorators) DOCTEST_TEST_SUITE(decorators) |
| 2947 | #define TEST_SUITE_BEGINcxx . . $ `tests/thirdparty/doctest/doctest.h:2947:9`!(name) DOCTEST_TEST_SUITE_BEGIN(name) |
| 2948 | #define TEST_SUITE_ENDcxx . . $ `tests/thirdparty/doctest/doctest.h:2948:9`! DOCTEST_TEST_SUITE_END |
| 2949 | #define REGISTER_EXCEPTION_TRANSLATORcxx . . $ `tests/thirdparty/doctest/doctest.h:2949:9`!(signature) DOCTEST_REGISTER_EXCEPTION_TRANSLATOR(signature) |
| 2950 | #define REGISTER_REPORTERcxx . . $ `tests/thirdparty/doctest/doctest.h:2950:9`!(name, priority, reporter) DOCTEST_REGISTER_REPORTER(name, priority, reporter) |
| 2951 | #define REGISTER_LISTENERcxx . . $ `tests/thirdparty/doctest/doctest.h:2951:9`!(name, priority, reporter) DOCTEST_REGISTER_LISTENER(name, priority, reporter) |
| 2952 | #define INFOcxx . . $ `tests/thirdparty/doctest/doctest.h:2952:9`!(...) DOCTEST_INFOcxx . . $ `tests/thirdparty/doctest/doctest.h:2344:9`!(__VA_ARGS__) |
| 2953 | #define CAPTUREcxx . . $ `tests/thirdparty/doctest/doctest.h:2953:9`!(x) DOCTEST_CAPTURE(x) |
| 2954 | #define ADD_MESSAGE_ATcxx . . $ `tests/thirdparty/doctest/doctest.h:2954:9`!(file, line, ...) DOCTEST_ADD_MESSAGE_AT(file, line, __VA_ARGS__) |
| 2955 | #define ADD_FAIL_CHECK_ATcxx . . $ `tests/thirdparty/doctest/doctest.h:2955:9`!(file, line, ...) DOCTEST_ADD_FAIL_CHECK_AT(file, line, __VA_ARGS__) |
| 2956 | #define ADD_FAIL_ATcxx . . $ `tests/thirdparty/doctest/doctest.h:2956:9`!(file, line, ...) DOCTEST_ADD_FAIL_AT(file, line, __VA_ARGS__) |
| 2957 | #define MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2957:9`!(...) DOCTEST_MESSAGE(__VA_ARGS__) |
| 2958 | #define FAIL_CHECKcxx . . $ `tests/thirdparty/doctest/doctest.h:2958:9`!(...) DOCTEST_FAIL_CHECK(__VA_ARGS__) |
| 2959 | #define FAILcxx . . $ `tests/thirdparty/doctest/doctest.h:2959:9`!(...) DOCTEST_FAIL(__VA_ARGS__) |
| 2960 | #define TO_LVALUEcxx . . $ `tests/thirdparty/doctest/doctest.h:2960:9`!(...) DOCTEST_TO_LVALUE(__VA_ARGS__) |
| 2961 | |
| 2962 | #define WARNcxx . . $ `tests/thirdparty/doctest/doctest.h:2962:9`!(...) DOCTEST_WARN(__VA_ARGS__) |
| 2963 | #define WARN_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2963:9`!(...) DOCTEST_WARN_FALSE(__VA_ARGS__) |
| 2964 | #define WARN_THROWScxx . . $ `tests/thirdparty/doctest/doctest.h:2964:9`!(...) DOCTEST_WARN_THROWS(__VA_ARGS__) |
| 2965 | #define WARN_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2965:9`!(expr, ...) DOCTEST_WARN_THROWS_AS(expr, __VA_ARGS__) |
| 2966 | #define WARN_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2966:9`!(expr, ...) DOCTEST_WARN_THROWS_WITH(expr, __VA_ARGS__) |
| 2967 | #define WARN_THROWS_WITH_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2967:9`!(expr, with, ...) DOCTEST_WARN_THROWS_WITH_AS(expr, with, __VA_ARGS__) |
| 2968 | #define WARN_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2968:9`!(...) DOCTEST_WARN_NOTHROW(__VA_ARGS__) |
| 2969 | #define CHECKcxx . . $ `tests/thirdparty/doctest/doctest.h:2969:9`!(...) DOCTEST_CHECKcxx . . $ `tests/thirdparty/doctest/doctest.h:2440:9`!(__VA_ARGS__) |
| 2970 | #define CHECK_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2970:9`!(...) DOCTEST_CHECK_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2443:9`!(__VA_ARGS__) |
| 2971 | #define CHECK_THROWScxx . . $ `tests/thirdparty/doctest/doctest.h:2971:9`!(...) DOCTEST_CHECK_THROWS(__VA_ARGS__) |
| 2972 | #define CHECK_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2972:9`!(expr, ...) DOCTEST_CHECK_THROWS_AS(expr, __VA_ARGS__) |
| 2973 | #define CHECK_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2973:9`!(expr, ...) DOCTEST_CHECK_THROWS_WITH(expr, __VA_ARGS__) |
| 2974 | #define CHECK_THROWS_WITH_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2974:9`!(expr, with, ...) DOCTEST_CHECK_THROWS_WITH_AS(expr, with, __VA_ARGS__) |
| 2975 | #define CHECK_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2975:9`!(...) DOCTEST_CHECK_NOTHROW(__VA_ARGS__) |
| 2976 | #define REQUIREcxx . . $ `tests/thirdparty/doctest/doctest.h:2976:9`!(...) DOCTEST_REQUIREcxx . . $ `tests/thirdparty/doctest/doctest.h:2441:9`!(__VA_ARGS__) |
| 2977 | #define REQUIRE_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:2977:9`!(...) DOCTEST_REQUIRE_FALSE(__VA_ARGS__) |
| 2978 | #define REQUIRE_THROWScxx . . $ `tests/thirdparty/doctest/doctest.h:2978:9`!(...) DOCTEST_REQUIRE_THROWS(__VA_ARGS__) |
| 2979 | #define REQUIRE_THROWS_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2979:9`!(expr, ...) DOCTEST_REQUIRE_THROWS_AS(expr, __VA_ARGS__) |
| 2980 | #define REQUIRE_THROWS_WITHcxx . . $ `tests/thirdparty/doctest/doctest.h:2980:9`!(expr, ...) DOCTEST_REQUIRE_THROWS_WITH(expr, __VA_ARGS__) |
| 2981 | #define REQUIRE_THROWS_WITH_AScxx . . $ `tests/thirdparty/doctest/doctest.h:2981:9`!(expr, with, ...) DOCTEST_REQUIRE_THROWS_WITH_AS(expr, with, __VA_ARGS__) |
| 2982 | #define REQUIRE_NOTHROWcxx . . $ `tests/thirdparty/doctest/doctest.h:2982:9`!(...) DOCTEST_REQUIRE_NOTHROW(__VA_ARGS__) |
| 2983 | |
| 2984 | #define WARN_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2984:9`!(cond, ...) DOCTEST_WARN_MESSAGE(cond, __VA_ARGS__) |
| 2985 | #define WARN_FALSE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2985:9`!(cond, ...) DOCTEST_WARN_FALSE_MESSAGE(cond, __VA_ARGS__) |
| 2986 | #define WARN_THROWS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2986:9`!(expr, ...) DOCTEST_WARN_THROWS_MESSAGE(expr, __VA_ARGS__) |
| 2987 | #define WARN_THROWS_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2987:9`!(expr, ex, ...) DOCTEST_WARN_THROWS_AS_MESSAGE(expr, ex, __VA_ARGS__) |
| 2988 | #define WARN_THROWS_WITH_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2988:9`!(expr, with, ...) DOCTEST_WARN_THROWS_WITH_MESSAGE(expr, with, __VA_ARGS__) |
| 2989 | #define WARN_THROWS_WITH_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2989:9`!(expr, with, ex, ...) DOCTEST_WARN_THROWS_WITH_AS_MESSAGE(expr, with, ex, __VA_ARGS__) |
| 2990 | #define WARN_NOTHROW_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2990:9`!(expr, ...) DOCTEST_WARN_NOTHROW_MESSAGE(expr, __VA_ARGS__) |
| 2991 | #define CHECK_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2991:9`!(cond, ...) DOCTEST_CHECK_MESSAGE(cond, __VA_ARGS__) |
| 2992 | #define CHECK_FALSE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2992:9`!(cond, ...) DOCTEST_CHECK_FALSE_MESSAGE(cond, __VA_ARGS__) |
| 2993 | #define CHECK_THROWS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2993:9`!(expr, ...) DOCTEST_CHECK_THROWS_MESSAGE(expr, __VA_ARGS__) |
| 2994 | #define CHECK_THROWS_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2994:9`!(expr, ex, ...) DOCTEST_CHECK_THROWS_AS_MESSAGE(expr, ex, __VA_ARGS__) |
| 2995 | #define CHECK_THROWS_WITH_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2995:9`!(expr, with, ...) DOCTEST_CHECK_THROWS_WITH_MESSAGE(expr, with, __VA_ARGS__) |
| 2996 | #define CHECK_THROWS_WITH_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2996:9`!(expr, with, ex, ...) DOCTEST_CHECK_THROWS_WITH_AS_MESSAGE(expr, with, ex, __VA_ARGS__) |
| 2997 | #define CHECK_NOTHROW_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2997:9`!(expr, ...) DOCTEST_CHECK_NOTHROW_MESSAGE(expr, __VA_ARGS__) |
| 2998 | #define REQUIRE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2998:9`!(cond, ...) DOCTEST_REQUIRE_MESSAGE(cond, __VA_ARGS__) |
| 2999 | #define REQUIRE_FALSE_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:2999:9`!(cond, ...) DOCTEST_REQUIRE_FALSE_MESSAGE(cond, __VA_ARGS__) |
| 3000 | #define REQUIRE_THROWS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:3000:9`!(expr, ...) DOCTEST_REQUIRE_THROWS_MESSAGE(expr, __VA_ARGS__) |
| 3001 | #define REQUIRE_THROWS_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:3001:9`!(expr, ex, ...) DOCTEST_REQUIRE_THROWS_AS_MESSAGE(expr, ex, __VA_ARGS__) |
| 3002 | #define REQUIRE_THROWS_WITH_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:3002:9`!(expr, with, ...) DOCTEST_REQUIRE_THROWS_WITH_MESSAGE(expr, with, __VA_ARGS__) |
| 3003 | #define REQUIRE_THROWS_WITH_AS_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:3003:9`!(expr, with, ex, ...) DOCTEST_REQUIRE_THROWS_WITH_AS_MESSAGE(expr, with, ex, __VA_ARGS__) |
| 3004 | #define REQUIRE_NOTHROW_MESSAGEcxx . . $ `tests/thirdparty/doctest/doctest.h:3004:9`!(expr, ...) DOCTEST_REQUIRE_NOTHROW_MESSAGE(expr, __VA_ARGS__) |
| 3005 | |
| 3006 | #define SCENARIOcxx . . $ `tests/thirdparty/doctest/doctest.h:3006:9`!(name) DOCTEST_SCENARIO(name) |
| 3007 | #define SCENARIO_CLASScxx . . $ `tests/thirdparty/doctest/doctest.h:3007:9`!(name) DOCTEST_SCENARIO_CLASS(name) |
| 3008 | #define SCENARIO_TEMPLATEcxx . . $ `tests/thirdparty/doctest/doctest.h:3008:9`!(name, T, ...) DOCTEST_SCENARIO_TEMPLATE(name, T, __VA_ARGS__) |
| 3009 | #define SCENARIO_TEMPLATE_DEFINEcxx . . $ `tests/thirdparty/doctest/doctest.h:3009:9`!(name, T, id) DOCTEST_SCENARIO_TEMPLATE_DEFINE(name, T, id) |
| 3010 | #define GIVENcxx . . $ `tests/thirdparty/doctest/doctest.h:3010:9`!(name) DOCTEST_GIVEN(name) |
| 3011 | #define WHENcxx . . $ `tests/thirdparty/doctest/doctest.h:3011:9`!(name) DOCTEST_WHEN(name) |
| 3012 | #define AND_WHENcxx . . $ `tests/thirdparty/doctest/doctest.h:3012:9`!(name) DOCTEST_AND_WHEN(name) |
| 3013 | #define THENcxx . . $ `tests/thirdparty/doctest/doctest.h:3013:9`!(name) DOCTEST_THEN(name) |
| 3014 | #define AND_THENcxx . . $ `tests/thirdparty/doctest/doctest.h:3014:9`!(name) DOCTEST_AND_THEN(name) |
| 3015 | |
| 3016 | #define WARN_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:3016:9`!(...) DOCTEST_WARN_EQ(__VA_ARGS__) |
| 3017 | #define CHECK_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:3017:9`!(...) DOCTEST_CHECK_EQ(__VA_ARGS__) |
| 3018 | #define REQUIRE_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:3018:9`!(...) DOCTEST_REQUIRE_EQ(__VA_ARGS__) |
| 3019 | #define WARN_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:3019:9`!(...) DOCTEST_WARN_NE(__VA_ARGS__) |
| 3020 | #define CHECK_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:3020:9`!(...) DOCTEST_CHECK_NE(__VA_ARGS__) |
| 3021 | #define REQUIRE_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:3021:9`!(...) DOCTEST_REQUIRE_NE(__VA_ARGS__) |
| 3022 | #define WARN_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:3022:9`!(...) DOCTEST_WARN_GT(__VA_ARGS__) |
| 3023 | #define CHECK_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:3023:9`!(...) DOCTEST_CHECK_GT(__VA_ARGS__) |
| 3024 | #define REQUIRE_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:3024:9`!(...) DOCTEST_REQUIRE_GT(__VA_ARGS__) |
| 3025 | #define WARN_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:3025:9`!(...) DOCTEST_WARN_LT(__VA_ARGS__) |
| 3026 | #define CHECK_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:3026:9`!(...) DOCTEST_CHECK_LT(__VA_ARGS__) |
| 3027 | #define REQUIRE_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:3027:9`!(...) DOCTEST_REQUIRE_LT(__VA_ARGS__) |
| 3028 | #define WARN_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:3028:9`!(...) DOCTEST_WARN_GE(__VA_ARGS__) |
| 3029 | #define CHECK_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:3029:9`!(...) DOCTEST_CHECK_GE(__VA_ARGS__) |
| 3030 | #define REQUIRE_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:3030:9`!(...) DOCTEST_REQUIRE_GE(__VA_ARGS__) |
| 3031 | #define WARN_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:3031:9`!(...) DOCTEST_WARN_LE(__VA_ARGS__) |
| 3032 | #define CHECK_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:3032:9`!(...) DOCTEST_CHECK_LE(__VA_ARGS__) |
| 3033 | #define REQUIRE_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:3033:9`!(...) DOCTEST_REQUIRE_LE(__VA_ARGS__) |
| 3034 | #define WARN_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:3034:9`!(...) DOCTEST_WARN_UNARY(__VA_ARGS__) |
| 3035 | #define CHECK_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:3035:9`!(...) DOCTEST_CHECK_UNARY(__VA_ARGS__) |
| 3036 | #define REQUIRE_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:3036:9`!(...) DOCTEST_REQUIRE_UNARY(__VA_ARGS__) |
| 3037 | #define WARN_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:3037:9`!(...) DOCTEST_WARN_UNARY_FALSE(__VA_ARGS__) |
| 3038 | #define CHECK_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:3038:9`!(...) DOCTEST_CHECK_UNARY_FALSE(__VA_ARGS__) |
| 3039 | #define REQUIRE_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:3039:9`!(...) DOCTEST_REQUIRE_UNARY_FALSE(__VA_ARGS__) |
| 3040 | |
| 3041 | // KEPT FOR BACKWARDS COMPATIBILITY |
| 3042 | #define FAST_WARN_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:3042:9`!(...) DOCTEST_FAST_WARN_EQ(__VA_ARGS__) |
| 3043 | #define FAST_CHECK_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:3043:9`!(...) DOCTEST_FAST_CHECK_EQ(__VA_ARGS__) |
| 3044 | #define FAST_REQUIRE_EQcxx . . $ `tests/thirdparty/doctest/doctest.h:3044:9`!(...) DOCTEST_FAST_REQUIRE_EQ(__VA_ARGS__) |
| 3045 | #define FAST_WARN_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:3045:9`!(...) DOCTEST_FAST_WARN_NE(__VA_ARGS__) |
| 3046 | #define FAST_CHECK_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:3046:9`!(...) DOCTEST_FAST_CHECK_NE(__VA_ARGS__) |
| 3047 | #define FAST_REQUIRE_NEcxx . . $ `tests/thirdparty/doctest/doctest.h:3047:9`!(...) DOCTEST_FAST_REQUIRE_NE(__VA_ARGS__) |
| 3048 | #define FAST_WARN_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:3048:9`!(...) DOCTEST_FAST_WARN_GT(__VA_ARGS__) |
| 3049 | #define FAST_CHECK_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:3049:9`!(...) DOCTEST_FAST_CHECK_GT(__VA_ARGS__) |
| 3050 | #define FAST_REQUIRE_GTcxx . . $ `tests/thirdparty/doctest/doctest.h:3050:9`!(...) DOCTEST_FAST_REQUIRE_GT(__VA_ARGS__) |
| 3051 | #define FAST_WARN_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:3051:9`!(...) DOCTEST_FAST_WARN_LT(__VA_ARGS__) |
| 3052 | #define FAST_CHECK_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:3052:9`!(...) DOCTEST_FAST_CHECK_LT(__VA_ARGS__) |
| 3053 | #define FAST_REQUIRE_LTcxx . . $ `tests/thirdparty/doctest/doctest.h:3053:9`!(...) DOCTEST_FAST_REQUIRE_LT(__VA_ARGS__) |
| 3054 | #define FAST_WARN_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:3054:9`!(...) DOCTEST_FAST_WARN_GE(__VA_ARGS__) |
| 3055 | #define FAST_CHECK_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:3055:9`!(...) DOCTEST_FAST_CHECK_GE(__VA_ARGS__) |
| 3056 | #define FAST_REQUIRE_GEcxx . . $ `tests/thirdparty/doctest/doctest.h:3056:9`!(...) DOCTEST_FAST_REQUIRE_GE(__VA_ARGS__) |
| 3057 | #define FAST_WARN_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:3057:9`!(...) DOCTEST_FAST_WARN_LE(__VA_ARGS__) |
| 3058 | #define FAST_CHECK_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:3058:9`!(...) DOCTEST_FAST_CHECK_LE(__VA_ARGS__) |
| 3059 | #define FAST_REQUIRE_LEcxx . . $ `tests/thirdparty/doctest/doctest.h:3059:9`!(...) DOCTEST_FAST_REQUIRE_LE(__VA_ARGS__) |
| 3060 | |
| 3061 | #define FAST_WARN_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:3061:9`!(...) DOCTEST_FAST_WARN_UNARY(__VA_ARGS__) |
| 3062 | #define FAST_CHECK_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:3062:9`!(...) DOCTEST_FAST_CHECK_UNARY(__VA_ARGS__) |
| 3063 | #define FAST_REQUIRE_UNARYcxx . . $ `tests/thirdparty/doctest/doctest.h:3063:9`!(...) DOCTEST_FAST_REQUIRE_UNARY(__VA_ARGS__) |
| 3064 | #define FAST_WARN_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:3064:9`!(...) DOCTEST_FAST_WARN_UNARY_FALSE(__VA_ARGS__) |
| 3065 | #define FAST_CHECK_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:3065:9`!(...) DOCTEST_FAST_CHECK_UNARY_FALSE(__VA_ARGS__) |
| 3066 | #define FAST_REQUIRE_UNARY_FALSEcxx . . $ `tests/thirdparty/doctest/doctest.h:3066:9`!(...) DOCTEST_FAST_REQUIRE_UNARY_FALSE(__VA_ARGS__) |
| 3067 | |
| 3068 | #define TEST_CASE_TEMPLATE_INSTANTIATEcxx . . $ `tests/thirdparty/doctest/doctest.h:3068:9`!(id, ...) DOCTEST_TEST_CASE_TEMPLATE_INSTANTIATE(id, __VA_ARGS__) |
| 3069 | |
| 3070 | #endif // DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES |
| 3071 | |
| 3072 | #ifndef DOCTEST_CONFIG_DISABLE |
| 3073 | |
| 3074 | // this is here to clear the 'current test suite' for the current translation unit - at the top |
| 3075 | DOCTEST_TEST_SUITE_ENDcxx . . $ doctest/detail/consume(8a3c03cab1458944).(); |
| 3076 | |
| 3077 | #endif // DOCTEST_CONFIG_DISABLE |
| 3078 | |
| 3079 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 3080 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 3081 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 3082 | |
| 3083 | DOCTEST_SUPPRESS_COMMON_WARNINGS_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:209:9`! |
| 3084 | |
| 3085 | #endif // DOCTEST_LIBRARY_INCLUDED |
| 3086 | |
| 3087 | #ifndef DOCTEST_SINGLE_HEADERcxx . . $ `tests/thirdparty/doctest/doctest.h:3088:9`! |
| 3088 | #define DOCTEST_SINGLE_HEADERcxx . . $ `tests/thirdparty/doctest/doctest.h:3088:9`! |
| 3089 | #endif // DOCTEST_SINGLE_HEADER |
| 3090 | |
| 3091 | #if defined(DOCTEST_CONFIG_IMPLEMENTcxx . . $ `tests/thirdparty/doctest/doctest.h:311:9`!) || !defined(DOCTEST_SINGLE_HEADERcxx . . $ `tests/thirdparty/doctest/doctest.h:3088:9`!) |
| 3092 | |
| 3093 | #ifndef DOCTEST_SINGLE_HEADERcxx . . $ `tests/thirdparty/doctest/doctest.h:3088:9`! |
| 3094 | #include "doctest_fwd.h" |
| 3095 | #endif // DOCTEST_SINGLE_HEADER |
| 3096 | |
| 3097 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wunused-macros") |
| 3098 | |
| 3099 | #ifndef DOCTEST_LIBRARY_IMPLEMENTATION |
| 3100 | #define DOCTEST_LIBRARY_IMPLEMENTATIONcxx . . $ `tests/thirdparty/doctest/doctest.h:3100:9`! |
| 3101 | |
| 3102 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 3103 | |
| 3104 | DOCTEST_SUPPRESS_COMMON_WARNINGS_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:162:9`! |
| 3105 | |
| 3106 | DOCTEST_CLANG_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:117:9`! |
| 3107 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wglobal-constructors") |
| 3108 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wexit-time-destructors") |
| 3109 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wsign-conversion") |
| 3110 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wshorten-64-to-32") |
| 3111 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wmissing-variable-declarations") |
| 3112 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wswitch") |
| 3113 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wswitch-enum") |
| 3114 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wcovered-switch-default") |
| 3115 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wmissing-noreturn") |
| 3116 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wdisabled-macro-expansion") |
| 3117 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wmissing-braces") |
| 3118 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wmissing-field-initializers") |
| 3119 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wunused-member-function") |
| 3120 | DOCTEST_CLANG_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:118:9`!("-Wnonportable-system-include-path") |
| 3121 | |
| 3122 | DOCTEST_GCC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:137:9`! |
| 3123 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wconversion") |
| 3124 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wsign-conversion") |
| 3125 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wmissing-field-initializers") |
| 3126 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wmissing-braces") |
| 3127 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wswitch") |
| 3128 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wswitch-enum") |
| 3129 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wswitch-default") |
| 3130 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wunsafe-loop-optimizations") |
| 3131 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wold-style-cast") |
| 3132 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wunused-function") |
| 3133 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wmultiple-inheritance") |
| 3134 | DOCTEST_GCC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:138:9`!("-Wsuggest-attribute") |
| 3135 | |
| 3136 | DOCTEST_MSVC_SUPPRESS_WARNING_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:150:9`! |
| 3137 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4267) // 'var' : conversion from 'x' to 'y', possible loss of data |
| 3138 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4530) // C++ exception handler used, but unwind semantics not enabled |
| 3139 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4577) // 'noexcept' used with no exception handling mode specified |
| 3140 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4774) // format string expected in argument is not a string literal |
| 3141 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4365) // conversion from 'int' to 'unsigned', signed/unsigned mismatch |
| 3142 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5039) // pointer to potentially throwing function passed to extern C |
| 3143 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(4800) // forcing value to bool 'true' or 'false' (performance warning) |
| 3144 | DOCTEST_MSVC_SUPPRESS_WARNINGcxx . . $ `tests/thirdparty/doctest/doctest.h:151:9`!(5245) // unreferenced function with internal linkage has been removed |
| 3145 | |
| 3146 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGINcxx . . $ `tests/thirdparty/doctest/doctest.h:228:9`! |
| 3147 | |
| 3148 | // required includes - will go only in one translation unit! |
| 3149 | #include <ctime> |
| 3150 | #include <cmath> |
| 3151 | #include <climits> |
| 3152 | // borland (Embarcadero) compiler requires math.h and not cmath - https://github.com/doctest/doctest/pull/37 |
| 3153 | #ifdef __BORLANDC__ |
| 3154 | #include <math.h> |
| 3155 | #endif // __BORLANDC__ |
| 3156 | #include <new> |
| 3157 | #include <cstdio> |
| 3158 | #include <cstdlib> |
| 3159 | #include <cstring> |
| 3160 | #include <limits> |
| 3161 | #include <utility> |
| 3162 | #include <fstream> |
| 3163 | #include <sstream> |
| 3164 | #ifndef DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 3165 | #include <iostream> |
| 3166 | #endif // DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 3167 | #include <algorithm> |
| 3168 | #include <iomanip> |
| 3169 | #include <vector> |
| 3170 | #ifndef DOCTEST_CONFIG_NO_MULTITHREADING |
| 3171 | #include <atomic> |
| 3172 | #include <mutex> |
| 3173 | #define DOCTEST_DECLARE_MUTEXcxx . . $ `tests/thirdparty/doctest/doctest.h:3173:9`!(name) std::mutex name; |
| 3174 | #define DOCTEST_DECLARE_STATIC_MUTEXcxx . . $ `tests/thirdparty/doctest/doctest.h:3174:9`!(name) static DOCTEST_DECLARE_MUTEX(name) |
| 3175 | #define DOCTEST_LOCK_MUTEXcxx . . $ `tests/thirdparty/doctest/doctest.h:3175:9`!(name) std::lock_guard<std::mutex> DOCTEST_ANONYMOUScxx . . $ `tests/thirdparty/doctest/doctest.h:422:9`!(DOCTEST_ANON_LOCK_)(name); |
| 3176 | #else // DOCTEST_CONFIG_NO_MULTITHREADING |
| 3177 | #define DOCTEST_DECLARE_MUTEX(name) |
| 3178 | #define DOCTEST_DECLARE_STATIC_MUTEX(name) |
| 3179 | #define DOCTEST_LOCK_MUTEX(name) |
| 3180 | #endif // DOCTEST_CONFIG_NO_MULTITHREADING |
| 3181 | #include <set> |
| 3182 | #include <map> |
| 3183 | #include <unordered_set> |
| 3184 | #include <exception> |
| 3185 | #include <stdexcept> |
| 3186 | #include <csignal> |
| 3187 | #include <cfloat> |
| 3188 | #include <cctype> |
| 3189 | #include <cstdint> |
| 3190 | #include <string> |
| 3191 | |
| 3192 | #ifdef DOCTEST_PLATFORM_MAC |
| 3193 | #include <sys/types.h> |
| 3194 | #include <unistd.h> |
| 3195 | #include <sys/sysctl.h> |
| 3196 | #endif // DOCTEST_PLATFORM_MAC |
| 3197 | |
| 3198 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 3199 | |
| 3200 | // defines for a leaner windows.h |
| 3201 | #ifndef WIN32_LEAN_AND_MEAN |
| 3202 | #define WIN32_LEAN_AND_MEAN |
| 3203 | #define DOCTEST_UNDEF_WIN32_LEAN_AND_MEAN |
| 3204 | #endif // WIN32_LEAN_AND_MEAN |
| 3205 | #ifndef NOMINMAX |
| 3206 | #define NOMINMAX |
| 3207 | #define DOCTEST_UNDEF_NOMINMAX |
| 3208 | #endif // NOMINMAX |
| 3209 | |
| 3210 | // not sure what AfxWin.h is for - here I do what Catch does |
| 3211 | #ifdef __AFXDLL |
| 3212 | #include <AfxWin.h> |
| 3213 | #else |
| 3214 | #include <windows.h> |
| 3215 | #endif |
| 3216 | #include <io.h> |
| 3217 | |
| 3218 | #else // DOCTEST_PLATFORM_WINDOWS |
| 3219 | |
| 3220 | #include <sys/time.h> |
| 3221 | #include <unistd.h> |
| 3222 | |
| 3223 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 3224 | |
| 3225 | // this is a fix for https://github.com/doctest/doctest/issues/348 |
| 3226 | // https://mail.gnome.org/archives/xml/2012-January/msg00000.html |
| 3227 | #if !defined(HAVE_UNISTD_H) && !defined(STDOUT_FILENOcxx . . $ `<external>/12628407106812493757/unistd.h:211:9`!) |
| 3228 | #define STDOUT_FILENO fileno(stdout) |
| 3229 | #endif // HAVE_UNISTD_H |
| 3230 | |
| 3231 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_ENDcxx . . $ `tests/thirdparty/doctest/doctest.h:249:9`! |
| 3232 | |
| 3233 | // counts the number of elements in a C array |
| 3234 | #define DOCTEST_COUNTOFcxx . . $ `tests/thirdparty/doctest/doctest.h:3234:9`!(x) (sizeof(x) / sizeof(x[0])) |
| 3235 | |
| 3236 | #ifdef DOCTEST_CONFIG_DISABLE |
| 3237 | #define DOCTEST_BRANCH_ON_DISABLED(if_disabled, if_not_disabled) if_disabled |
| 3238 | #else // DOCTEST_CONFIG_DISABLE |
| 3239 | #define DOCTEST_BRANCH_ON_DISABLEDcxx . . $ `tests/thirdparty/doctest/doctest.h:3239:9`!(if_disabled, if_not_disabled) if_not_disabled |
| 3240 | #endif // DOCTEST_CONFIG_DISABLE |
| 3241 | |
| 3242 | #ifndef DOCTEST_CONFIG_OPTIONS_PREFIX |
| 3243 | #define DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "dt-" |
| 3244 | #endif |
| 3245 | |
| 3246 | #ifndef DOCTEST_THREAD_LOCALcxx . . $ `tests/thirdparty/doctest/doctest_compatibility.h:5:9`! |
| 3247 | #if defined(DOCTEST_CONFIG_NO_MULTITHREADING) || DOCTEST_MSVC && (DOCTEST_MSVC < DOCTEST_COMPILER(19, 0, 0)) |
| 3248 | #define DOCTEST_THREAD_LOCAL |
| 3249 | #else // DOCTEST_MSVC |
| 3250 | #define DOCTEST_THREAD_LOCAL thread_local |
| 3251 | #endif // DOCTEST_MSVC |
| 3252 | #endif // DOCTEST_THREAD_LOCAL |
| 3253 | |
| 3254 | #ifndef DOCTEST_MULTI_LANE_ATOMICS_THREAD_LANES |
| 3255 | #define DOCTEST_MULTI_LANE_ATOMICS_THREAD_LANEScxx . . $ `tests/thirdparty/doctest/doctest.h:3255:9`! 32 |
| 3256 | #endif |
| 3257 | |
| 3258 | #ifndef DOCTEST_MULTI_LANE_ATOMICS_CACHE_LINE_SIZE |
| 3259 | #define DOCTEST_MULTI_LANE_ATOMICS_CACHE_LINE_SIZEcxx . . $ `tests/thirdparty/doctest/doctest.h:3259:9`! 64 |
| 3260 | #endif |
| 3261 | |
| 3262 | #ifdef DOCTEST_CONFIG_NO_UNPREFIXED_OPTIONS |
| 3263 | #define DOCTEST_OPTIONS_PREFIX_DISPLAY DOCTEST_CONFIG_OPTIONS_PREFIX |
| 3264 | #else |
| 3265 | #define DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "" |
| 3266 | #endif |
| 3267 | |
| 3268 | #if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) |
| 3269 | #define DOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS |
| 3270 | #endif |
| 3271 | |
| 3272 | #ifndef DOCTEST_CDECL |
| 3273 | #define DOCTEST_CDECLcxx . . $ `tests/thirdparty/doctest/doctest.h:3273:9`! __cdecl |
| 3274 | #endif |
| 3275 | |
| 3276 | namespace doctestcxx . . $ doctest/ { |
| 3277 | |
| 3278 | bool is_running_in_testcxx . . $ doctest/is_running_in_test. = false; |
| 3279 | |
| 3280 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 3281 | using namespace detail; |
| 3282 | |
| 3283 | template <typename Ex> |
| 3284 | DOCTEST_NORETURNcxx . . $ `tests/thirdparty/doctest/doctest.h:373:9`! void throw_exceptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/throw_exception(77d9f17553126ecb).(Ex const& e) { |
| 3285 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 3286 | throw e; |
| 3287 | #else // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 3288 | #ifdef DOCTEST_CONFIG_HANDLE_EXCEPTION |
| 3289 | DOCTEST_CONFIG_HANDLE_EXCEPTION(e); |
| 3290 | #else // DOCTEST_CONFIG_HANDLE_EXCEPTION |
| 3291 | #ifndef DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 3292 | std::cerr << "doctest will terminate because it needed to throw an exception.\n" |
| 3293 | << "The message was: " << e.what() << '\n'; |
| 3294 | #endif // DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 3295 | #endif // DOCTEST_CONFIG_HANDLE_EXCEPTION |
| 3296 | std::terminate(); |
| 3297 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 3298 | } |
| 3299 | |
| 3300 | #ifndef DOCTEST_INTERNAL_ERROR |
| 3301 | #define DOCTEST_INTERNAL_ERRORcxx . . $ `tests/thirdparty/doctest/doctest.h:3301:9`!(msg) \ |
| 3302 | throw_exception(std::logic_error( \ |
| 3303 | __FILE__ ":" DOCTEST_TOSTRcxx . . $ `tests/thirdparty/doctest/doctest.h:55:9`!(__LINE__) ": Internal doctest error: " msg)) |
| 3304 | #endif // DOCTEST_INTERNAL_ERROR |
| 3305 | |
| 3306 | // case insensitive strcmp |
| 3307 | int stricmpcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/stricmp(5ae29d726ae57f88).(const char* a, const char* b) { |
| 3308 | for(;; a++, b++) { |
| 3309 | const int d = tolower(*a) - tolower(*b); |
| 3310 | if(d != 0 || !*a) |
| 3311 | return d; |
| 3312 | } |
| 3313 | } |
| 3314 | |
| 3315 | struct Endiannesscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness# |
| 3316 | { |
| 3317 | enum Archcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#Arch# |
| 3318 | { |
| 3319 | Bigcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#Big., |
| 3320 | Littlecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#Little. |
| 3321 | }; |
| 3322 | |
| 3323 | static Archcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#Arch# whichcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#which(9937aa68f8b5332c).() { |
| 3324 | int x = 1; |
| 3325 | // casting any data pointer to char* is allowed |
| 3326 | auto ptr = reinterpret_cast<char*>(&x); |
| 3327 | if(*ptr) |
| 3328 | return Littlecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#Little.; |
| 3329 | return Bigcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Endianness#Big.; |
| 3330 | } |
| 3331 | }; |
| 3332 | } // namespace |
| 3333 | |
| 3334 | namespace detailcxx . . $ doctest/detail/ { |
| 3335 | DOCTEST_THREAD_LOCALcxx . . $ `tests/thirdparty/doctest/doctest_compatibility.h:5:9`! classcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1# |
| 3336 | { |
| 3337 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::streamposcxx . . $ std/streampos#> stackcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#stack.; |
| 3338 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#ss.; |
| 3339 | |
| 3340 | public: |
| 3341 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* pushcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#push(a0ce4335f407e5ba).() { |
| 3342 | stackcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#stack..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(sscxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#ss..tellpcxx . . $ std/basic_ostream#tellp(bf66e90edbd3e74a).()); |
| 3343 | return &sscxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#ss.; |
| 3344 | } |
| 3345 | |
| 3346 | Stringcxx . . $ doctest/String# popcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#pop(352b1a6751d00680).() { |
| 3347 | if (stackcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#stack..emptycxx . . $ std/vector#empty(3482b152b9333168).()) |
| 3348 | DOCTEST_INTERNAL_ERRORcxx . . $ std/("TLSS was empty when trying to pop!"); |
| 3349 | |
| 3350 | stdcxx . . $ std/::streamposcxx . . $ std/streampos# pos = stackcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#stack..backcxx . . $ std/vector#back(6baabfa6fc7b3a8e).(); |
| 3351 | stackcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#stack..pop_backcxx . . $ std/vector#pop_back(ced63f7c635d850d).(); |
| 3352 | unsigned sz = static_cast<unsigned>(sscxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#ss..tellpcxx . . $ std/basic_ostream#tellp(bf66e90edbd3e74a).() -cxx . . $ std/fpos#operator-(ab7b2013b0b19be4). pos); |
| 3353 | sscxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#ss..rdbufcxx . . $ std/__cxx11/basic_stringstream#rdbuf(cc2d80b3dc5c05cc).()->pubseekposcxx . . $ std/basic_streambuf#pubseekpos(7c2ddcd92c25b7ea).(poscxx . . $ std/fpos#fpos(aab86884a67ce5a9)., stdcxx . . $ std/::ioscxx . . $ std/ios#::incxx . . $ std/ios_base#in. |cxx . . $ std/`operator|`(2dd9eb40323da8bf). stdcxx . . $ std/::ioscxx . . $ std/ios#::outcxx . . $ std/ios_base#out.); |
| 3354 | return Stringcxx . . $ doctest/String#(sscxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#ss., sz); |
| 3355 | } |
| 3356 | } g_osscxx . . $ doctest/detail/g_oss.; |
| 3357 | |
| 3358 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* tlssPushcxx . . $ doctest/detail/tlssPush(a0ce4335f407e5ba).() { |
| 3359 | return g_osscxx . . $ doctest/detail/g_oss..pushcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#push(a0ce4335f407e5ba).(); |
| 3360 | } |
| 3361 | |
| 3362 | Stringcxx . . $ doctest/String# tlssPopcxx . . $ doctest/detail/tlssPop(352b1a6751d00680).() { |
| 3363 | return g_osscxx . . $ doctest/detail/g_oss..popcxx . . $ doctest/detail/$anonymous_type_19eae2e52e58e9b5_1#pop(352b1a6751d00680).(); |
| 3364 | } |
| 3365 | |
| 3366 | #ifndef DOCTEST_CONFIG_DISABLE |
| 3367 | |
| 3368 | namespace timer_large_integercxx . . $ doctest/detail/timer_large_integer/ |
| 3369 | { |
| 3370 | |
| 3371 | #if defined(DOCTEST_PLATFORM_WINDOWS) |
| 3372 | using type = ULONGLONG; |
| 3373 | #else // DOCTEST_PLATFORM_WINDOWS |
| 3374 | using typecxx . . $ doctest/detail/timer_large_integer/type# = stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#; |
| 3375 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 3376 | } |
| 3377 | |
| 3378 | using ticks_tcxx . . $ doctest/detail/ticks_t# = timer_large_integercxx . . $ doctest/detail/timer_large_integer/::typecxx . . $ doctest/detail/timer_large_integer/type#; |
| 3379 | |
| 3380 | #ifdef DOCTEST_CONFIG_GETCURRENTTICKS |
| 3381 | ticks_t getCurrentTicks() { return DOCTEST_CONFIG_GETCURRENTTICKS(); } |
| 3382 | #elif defined(DOCTEST_PLATFORM_WINDOWS) |
| 3383 | ticks_t getCurrentTicks() { |
| 3384 | static LARGE_INTEGER hz = { {0} }, hzo = { {0} }; |
| 3385 | if(!hz.QuadPart) { |
| 3386 | QueryPerformanceFrequency(&hz); |
| 3387 | QueryPerformanceCounter(&hzo); |
| 3388 | } |
| 3389 | LARGE_INTEGER t; |
| 3390 | QueryPerformanceCounter(&t); |
| 3391 | return ((t.QuadPart - hzo.QuadPart) * LONGLONG(1000000)) / hz.QuadPart; |
| 3392 | } |
| 3393 | #else // DOCTEST_PLATFORM_WINDOWS |
| 3394 | ticks_tcxx . . $ doctest/detail/ticks_t# getCurrentTickscxx . . $ doctest/detail/getCurrentTicks(f708dce9a8856c70).() { |
| 3395 | timevalcxx . . $ timeval# t; |
| 3396 | gettimeofday(&t, nullptr); |
| 3397 | return static_cast<ticks_tcxx . . $ doctest/detail/ticks_t#>(t.tv_seccxx . . $ timeval#tv_sec.) * 1000000 + static_cast<ticks_tcxx . . $ doctest/detail/ticks_t#>(t.tv_useccxx . . $ timeval#tv_usec.); |
| 3398 | } |
| 3399 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 3400 | |
| 3401 | struct Timercxx . . $ doctest/detail/Timer# |
| 3402 | { |
| 3403 | void startcxx . . $ doctest/detail/Timer#start(49f6e7a06ebc5aa8).() { m_tickscxx . . $ doctest/detail/Timer#m_ticks. = getCurrentTickscxx . . $ doctest/detail/getCurrentTicks(f708dce9a8856c70).(); } |
| 3404 | unsigned int getElapsedMicrosecondscxx . . $ doctest/detail/Timer#getElapsedMicroseconds(ddd8539a2fcdd4ce).() const { |
| 3405 | return static_cast<unsigned int>(getCurrentTickscxx . . $ doctest/detail/getCurrentTicks(f708dce9a8856c70).() - m_tickscxx . . $ doctest/detail/Timer#m_ticks.); |
| 3406 | } |
| 3407 | //unsigned int getElapsedMilliseconds() const { |
| 3408 | // return static_cast<unsigned int>(getElapsedMicroseconds() / 1000); |
| 3409 | //} |
| 3410 | double getElapsedSecondscxx . . $ doctest/detail/Timer#getElapsedSeconds(21b6c25e127938e2).() const { return static_cast<double>(getCurrentTickscxx . . $ doctest/detail/getCurrentTicks(f708dce9a8856c70).() - m_tickscxx . . $ doctest/detail/Timer#m_ticks.) / 1000000.0; } |
| 3411 | |
| 3412 | private: |
| 3413 | ticks_tcxx . . $ doctest/detail/ticks_t# m_tickscxx . . $ doctest/detail/Timer#m_ticks. = 0; |
| 3414 | }; |
| 3415 | |
| 3416 | #ifdef DOCTEST_CONFIG_NO_MULTITHREADING |
| 3417 | template <typename T> |
| 3418 | using Atomic = T; |
| 3419 | #else // DOCTEST_CONFIG_NO_MULTITHREADING |
| 3420 | template <typename T> |
| 3421 | using Atomiccxx . . $ doctest/detail/Atomic# = stdcxx . . $ std/::atomiccxx . . $ std/atomic#<T>; |
| 3422 | #endif // DOCTEST_CONFIG_NO_MULTITHREADING |
| 3423 | |
| 3424 | #if defined(DOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS) || defined(DOCTEST_CONFIG_NO_MULTITHREADING) |
| 3425 | template <typename T> |
| 3426 | using MultiLaneAtomic = Atomic<T>; |
| 3427 | #else // DOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS |
| 3428 | // Provides a multilane implementation of an atomic variable that supports add, sub, load, |
| 3429 | // store. Instead of using a single atomic variable, this splits up into multiple ones, |
| 3430 | // each sitting on a separate cache line. The goal is to provide a speedup when most |
| 3431 | // operations are modifying. It achieves this with two properties: |
| 3432 | // |
| 3433 | // * Multiple atomics are used, so chance of congestion from the same atomic is reduced. |
| 3434 | // * Each atomic sits on a separate cache line, so false sharing is reduced. |
| 3435 | // |
| 3436 | // The disadvantage is that there is a small overhead due to the use of TLS, and load/store |
| 3437 | // is slower because all atomics have to be accessed. |
| 3438 | template <typename T> |
| 3439 | class MultiLaneAtomiccxx . . $ doctest/detail/MultiLaneAtomic# |
| 3440 | { |
| 3441 | struct CacheLineAlignedAtomiccxx . . $ doctest/detail/MultiLaneAtomic#CacheLineAlignedAtomic# |
| 3442 | { |
| 3443 | Atomiccxx . . $ doctest/detail/Atomic#<T> atomiccxx . . $ doctest/detail/MultiLaneAtomic#CacheLineAlignedAtomic#atomic.{}; |
| 3444 | char paddingcxx . . $ doctest/detail/MultiLaneAtomic#CacheLineAlignedAtomic#padding.[DOCTEST_MULTI_LANE_ATOMICS_CACHE_LINE_SIZEcxx . . $ `tests/thirdparty/doctest/doctest.h:3259:9`! - sizeof(Atomiccxx . . $ doctest/detail/Atomic#<T>)]; |
| 3445 | }; |
| 3446 | CacheLineAlignedAtomiccxx . . $ doctest/detail/MultiLaneAtomic#CacheLineAlignedAtomic# m_atomicscxx . . $ doctest/detail/MultiLaneAtomic#m_atomics.[DOCTEST_MULTI_LANE_ATOMICS_THREAD_LANEScxx . . $ `tests/thirdparty/doctest/doctest.h:3255:9`!]; |
| 3447 | |
| 3448 | static_assert(sizeof(CacheLineAlignedAtomiccxx . . $ doctest/detail/MultiLaneAtomic#CacheLineAlignedAtomic#) == DOCTEST_MULTI_LANE_ATOMICS_CACHE_LINE_SIZEcxx . . $ `tests/thirdparty/doctest/doctest.h:3259:9`!, |
| 3449 | "guarantee one atomic takes exactly one cache line"); |
| 3450 | |
| 3451 | public: |
| 3452 | T operatorcxx . . $ doctest/detail/MultiLaneAtomic#operator++(6390f2d371ad8d1d).++() DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { return fetch_addcxx . . $ doctest/detail/MultiLaneAtomic#fetch_add(8de7200f212ddeb7).(1) +cxx . . $ doctest/operator+(670c5a04c572f3f0). 1; } |
| 3453 | |
| 3454 | T operatorcxx . . $ doctest/detail/MultiLaneAtomic#operator++(bbf2e7a2e1bdb501).++(int) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { return fetch_addcxx . . $ doctest/detail/MultiLaneAtomic#fetch_add(8de7200f212ddeb7).(1); } |
| 3455 | |
| 3456 | T fetch_addcxx . . $ doctest/detail/MultiLaneAtomic#fetch_add(8de7200f212ddeb7).(T arg, stdcxx . . $ std/::memory_ordercxx . . $ std/memory_order# order = stdcxx . . $ std/::memory_order_seq_cstcxx . . $ std/memory_order_seq_cst.) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 3457 | return myAtomiccxx . . $ doctest/detail/MultiLaneAtomic#myAtomic(3d3a18f95b1ca3c6).().fetch_add(arg, order); |
| 3458 | } |
| 3459 | |
| 3460 | T fetch_subcxx . . $ doctest/detail/MultiLaneAtomic#fetch_sub(8de7200f212ddeb7).(T arg, stdcxx . . $ std/::memory_ordercxx . . $ std/memory_order# order = stdcxx . . $ std/::memory_order_seq_cstcxx . . $ std/memory_order_seq_cst.) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 3461 | return myAtomiccxx . . $ doctest/detail/MultiLaneAtomic#myAtomic(3d3a18f95b1ca3c6).().fetch_sub(arg, order); |
| 3462 | } |
| 3463 | |
| 3464 | operatorcxx . . $ doctest/detail/MultiLaneAtomic#`operator type-parameter-0-0`(9246f0133b7f8112). T() const DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { return loadcxx . . $ doctest/detail/MultiLaneAtomic#load(1776886d83107284).(); } |
| 3465 | |
| 3466 | T loadcxx . . $ doctest/detail/MultiLaneAtomic#load(1776886d83107284).(stdcxx . . $ std/::memory_ordercxx . . $ std/memory_order# order = stdcxx . . $ std/::memory_order_seq_cstcxx . . $ std/memory_order_seq_cst.) const DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 3467 | auto result = T(); |
| 3468 | for(auto const& c : m_atomicscxx . . $ doctest/detail/MultiLaneAtomic#m_atomics.) { |
| 3469 | result += c.atomic.load(order); |
| 3470 | } |
| 3471 | return result; |
| 3472 | } |
| 3473 | |
| 3474 | T operatorcxx . . $ doctest/detail/MultiLaneAtomic#`operator=`(73de6b30e1938209).=(T desired) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { // lgtm [cpp/assignment-does-not-return-this] |
| 3475 | storecxx . . $ doctest/detail/MultiLaneAtomic#store(3f1f49b30cba5fcc).(desired); |
| 3476 | return desired; |
| 3477 | } |
| 3478 | |
| 3479 | void storecxx . . $ doctest/detail/MultiLaneAtomic#store(3f1f49b30cba5fcc).(T desired, stdcxx . . $ std/::memory_ordercxx . . $ std/memory_order# order = stdcxx . . $ std/::memory_order_seq_cstcxx . . $ std/memory_order_seq_cst.) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 3480 | // first value becomes desired", all others become 0. |
| 3481 | for(auto& c : m_atomicscxx . . $ doctest/detail/MultiLaneAtomic#m_atomics.) { |
| 3482 | c.atomic.store(desired, order); |
| 3483 | desired = {}; |
| 3484 | } |
| 3485 | } |
| 3486 | |
| 3487 | private: |
| 3488 | // Each thread has a different atomic that it operates on. If more than NumLanes threads |
| 3489 | // use this, some will use the same atomic. So performance will degrade a bit, but still |
| 3490 | // everything will work. |
| 3491 | // |
| 3492 | // The logic here is a bit tricky. The call should be as fast as possible, so that there |
| 3493 | // is minimal to no overhead in determining the correct atomic for the current thread. |
| 3494 | // |
| 3495 | // 1. A global static counter laneCounter counts continuously up. |
| 3496 | // 2. Each successive thread will use modulo operation of that counter so it gets an atomic |
| 3497 | // assigned in a round-robin fashion. |
| 3498 | // 3. This tlsLaneIdx is stored in the thread local data, so it is directly available with |
| 3499 | // little overhead. |
| 3500 | Atomiccxx . . $ doctest/detail/Atomic#<T>& myAtomiccxx . . $ doctest/detail/MultiLaneAtomic#myAtomic(3d3a18f95b1ca3c6).() DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 3501 | static Atomiccxx . . $ doctest/detail/Atomic#<size_tcxx . . $ doctest/size_t#> laneCountercxx . . $ std/atomic#atomic(ced63f7c635d850d).; |
| 3502 | DOCTEST_THREAD_LOCALcxx . . $ `tests/thirdparty/doctest/doctest_compatibility.h:5:9`! size_tcxx . . $ doctest/size_t# tlsLaneIdx = |
| 3503 | laneCounter++cxx . . $ std/__atomic_base#operator++(bbf2e7a2e1bdb501). % DOCTEST_MULTI_LANE_ATOMICS_THREAD_LANEScxx . . $ `tests/thirdparty/doctest/doctest.h:3255:9`!; |
| 3504 | |
| 3505 | return m_atomicscxx . . $ doctest/detail/MultiLaneAtomic#m_atomics.[tlsLaneIdx].atomiccxx . . $ doctest/detail/MultiLaneAtomic#CacheLineAlignedAtomic#atomic.; |
| 3506 | } |
| 3507 | }; |
| 3508 | #endif // DOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS |
| 3509 | |
| 3510 | // this holds both parameters from the command line and runtime data for tests |
| 3511 | struct ContextStatecxx . . $ doctest/detail/ContextState# : ContextOptionscxx . . $ doctest/ContextOptions#, TestRunStatscxx . . $ doctest/TestRunStats#, CurrentTestCaseStatscxx . . $ doctest/CurrentTestCaseStats# |
| 3512 | { |
| 3513 | MultiLaneAtomiccxx . . $ doctest/detail/MultiLaneAtomic#<int> numAssertsCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsCurrentTest_atomic.; |
| 3514 | MultiLaneAtomiccxx . . $ doctest/detail/MultiLaneAtomic#<int> numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic.; |
| 3515 | |
| 3516 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<Stringcxx . . $ doctest/String#>> filterscxx . . $ doctest/detail/ContextState#filters. = decltypecxx . . $ std/vector#vector(83fdeebbe0501a83).(filterscxx . . $ doctest/detail/ContextState#filters.)(9); // 9 different filters |
| 3517 | |
| 3518 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<IReportercxx . . $ doctest/IReporter#*> reporters_currently_usedcxx . . $ doctest/detail/ContextState#reporters_currently_used.; |
| 3519 | |
| 3520 | assert_handlercxx . . $ doctest/detail/assert_handler# ahcxx . . $ doctest/detail/ContextState#ah. = nullptr; |
| 3521 | |
| 3522 | Timercxx . . $ doctest/detail/Timer# timercxx . . $ doctest/detail/ContextState#timer.; |
| 3523 | |
| 3524 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<Stringcxx . . $ doctest/String#> stringifiedContextscxx . . $ doctest/detail/ContextState#stringifiedContexts.; // logging from INFO() due to an exception |
| 3525 | |
| 3526 | // stuff for subcases |
| 3527 | bool reachedLeafcxx . . $ doctest/detail/ContextState#reachedLeaf.; |
| 3528 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<SubcaseSignaturecxx . . $ doctest/SubcaseSignature#> subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack.; |
| 3529 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<SubcaseSignaturecxx . . $ doctest/SubcaseSignature#> nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack.; |
| 3530 | stdcxx . . $ std/::unordered_setcxx . . $ std/unordered_set#<unsigned long long> fullyTraversedSubcasescxx . . $ doctest/detail/ContextState#fullyTraversedSubcases.; |
| 3531 | size_tcxx . . $ doctest/size_t# currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.; |
| 3532 | Atomiccxx . . $ doctest/detail/Atomic#<bool> shouldLogCurrentExceptioncxx . . $ doctest/detail/ContextState#shouldLogCurrentException.; |
| 3533 | |
| 3534 | void resetRunDatacxx . . $ doctest/detail/ContextState#resetRunData(49f6e7a06ebc5aa8).() { |
| 3535 | numTestCasescxx . . $ doctest/TestRunStats#numTestCases. = 0; |
| 3536 | numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. = 0; |
| 3537 | numTestSuitesPassingFilterscxx . . $ doctest/TestRunStats#numTestSuitesPassingFilters. = 0; |
| 3538 | numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. = 0; |
| 3539 | numAssertscxx . . $ doctest/TestRunStats#numAsserts. = 0; |
| 3540 | numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. = 0; |
| 3541 | numAssertsCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsCurrentTest. = 0; |
| 3542 | numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest. = 0; |
| 3543 | } |
| 3544 | |
| 3545 | void finalizeTestCaseDatacxx . . $ doctest/detail/ContextState#finalizeTestCaseData(49f6e7a06ebc5aa8).() { |
| 3546 | secondscxx . . $ doctest/CurrentTestCaseStats#seconds. = timercxx . . $ doctest/detail/ContextState#timer..getElapsedSecondscxx . . $ doctest/detail/Timer#getElapsedSeconds(21b6c25e127938e2).(); |
| 3547 | |
| 3548 | // update the non-atomic counters |
| 3549 | numAssertscxx . . $ doctest/TestRunStats#numAsserts. += numAssertsCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsCurrentTest_atomic.; |
| 3550 | numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. += numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic.; |
| 3551 | numAssertsCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsCurrentTest. = numAssertsCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsCurrentTest_atomic.; |
| 3552 | numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest. = numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic.; |
| 3553 | |
| 3554 | if(numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest.) |
| 3555 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::AssertFailurecxx . . $ doctest/TestCaseFailureReason/AssertFailure.; |
| 3556 | |
| 3557 | if(Approxcxx . . $ doctest/Approx#(currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_timeoutcxx . . $ doctest/TestCaseData#m_timeout.).epsiloncxx . . $ doctest/Approx#epsilon(1d9f6b6104c65758).(DBL_EPSILONcxx . . $ `<external>/18143172452841944454/float.h:114:9`!) !=cxx . . $ doctest/`operator!=`(9af8b5d848f4c114). 0 && |
| 3558 | Approxcxx . . $ doctest/Approx#(secondscxx . . $ doctest/CurrentTestCaseStats#seconds.).epsiloncxx . . $ doctest/Approx#epsilon(1d9f6b6104c65758).(DBL_EPSILONcxx . . $ `<external>/18143172452841944454/float.h:114:9`!) >cxx . . $ doctest/`operator>`(9af8b5d848f4c114). currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_timeoutcxx . . $ doctest/TestCaseData#m_timeout.) |
| 3559 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::Timeoutcxx . . $ doctest/TestCaseFailureReason/Timeout.; |
| 3560 | |
| 3561 | if(currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_should_failcxx . . $ doctest/TestCaseData#m_should_fail.) { |
| 3562 | if(failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags.) { |
| 3563 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::ShouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedAndDid.; |
| 3564 | } else { |
| 3565 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::ShouldHaveFailedButDidntcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedButDidnt.; |
| 3566 | } |
| 3567 | } else if(failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. && currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_may_failcxx . . $ doctest/TestCaseData#m_may_fail.) { |
| 3568 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::CouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/CouldHaveFailedAndDid.; |
| 3569 | } else if(currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures. > 0) { |
| 3570 | if(numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest. == currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures.) { |
| 3571 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::FailedExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/FailedExactlyNumTimes.; |
| 3572 | } else { |
| 3573 | failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::DidntFailExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/DidntFailExactlyNumTimes.; |
| 3574 | } |
| 3575 | } |
| 3576 | |
| 3577 | bool ok_to_fail = (TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::ShouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedAndDid. & failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags.) || |
| 3578 | (TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::CouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/CouldHaveFailedAndDid. & failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags.) || |
| 3579 | (TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::FailedExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/FailedExactlyNumTimes. & failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags.); |
| 3580 | |
| 3581 | // if any subcase has failed - the whole test case has failed |
| 3582 | testCaseSuccesscxx . . $ doctest/CurrentTestCaseStats#testCaseSuccess. = !(failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. && !ok_to_fail); |
| 3583 | if(!testCaseSuccesscxx . . $ doctest/CurrentTestCaseStats#testCaseSuccess.) |
| 3584 | numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed.++; |
| 3585 | } |
| 3586 | }; |
| 3587 | |
| 3588 | ContextStatecxx . . $ doctest/detail/ContextState#* g_cscxx . . $ doctest/detail/g_cs. = nullptr; |
| 3589 | |
| 3590 | // used to avoid locks for the debug output |
| 3591 | // TODO: figure out if this is indeed necessary/correct - seems like either there still |
| 3592 | // could be a race or that there wouldn't be a race even if using the context directly |
| 3593 | DOCTEST_THREAD_LOCALcxx . . $ `tests/thirdparty/doctest/doctest_compatibility.h:5:9`! bool g_no_colorscxx . . $ doctest/detail/g_no_colors.; |
| 3594 | |
| 3595 | #endif // DOCTEST_CONFIG_DISABLE |
| 3596 | } // namespace detail |
| 3597 | |
| 3598 | char* Stringcxx . . $ doctest/String#::allocatecxx . . $ doctest/String#allocate(f109d7e0a0ca42b3).(size_typecxx . . $ doctest/String#size_type# sz) { |
| 3599 | if (sz <= lastcxx . . $ doctest/String#last.) { |
| 3600 | bufcxx . . $ doctest/String#$anonymous_type_0#buf.[sz] = '\0'; |
| 3601 | setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(lastcxx . . $ doctest/String#last. - sz); |
| 3602 | return bufcxx . . $ doctest/String#$anonymous_type_0#buf.; |
| 3603 | } else { |
| 3604 | setOnHeapcxx . . $ doctest/String#setOnHeap(ced63f7c635d850d).(); |
| 3605 | datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. = sz; |
| 3606 | datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity. = datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. + 1; |
| 3607 | datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr. = new char[datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity.]; |
| 3608 | datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.[sz] = '\0'; |
| 3609 | return datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.; |
| 3610 | } |
| 3611 | } |
| 3612 | |
| 3613 | void Stringcxx . . $ doctest/String#::setOnHeapcxx . . $ doctest/String#setOnHeap(ced63f7c635d850d).() noexcept { *reinterpret_cast<unsigned char*>(&bufcxx . . $ doctest/String#$anonymous_type_0#buf.[lastcxx . . $ doctest/String#last.]) = 128; } |
| 3614 | void Stringcxx . . $ doctest/String#::setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(size_typecxx . . $ doctest/String#size_type# in) noexcept { bufcxx . . $ doctest/String#$anonymous_type_0#buf.[lastcxx . . $ doctest/String#last.] = char(in); } |
| 3615 | void Stringcxx . . $ doctest/String#::setSizecxx . . $ doctest/String#setSize(6bab9b75950d6f3).(size_typecxx . . $ doctest/String#size_type# sz) noexcept { |
| 3616 | if (isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) { bufcxx . . $ doctest/String#$anonymous_type_0#buf.[sz] = '\0'; setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(lastcxx . . $ doctest/String#last. - sz); } |
| 3617 | else { datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.[sz] = '\0'; datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. = sz; } |
| 3618 | } |
| 3619 | |
| 3620 | void Stringcxx . . $ doctest/String#::copycxx . . $ doctest/String#copy(895223ef195a8629).(const Stringcxx . . $ doctest/String#& other) { |
| 3621 | if(other.isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) { |
| 3622 | memcpy(bufcxx . . $ doctest/String#$anonymous_type_0#buf., other.bufcxx . . $ doctest/String#$anonymous_type_0#buf., lencxx . . $ doctest/String#len.); |
| 3623 | } else { |
| 3624 | memcpy(allocatecxx . . $ doctest/String#allocate(f109d7e0a0ca42b3).(other.datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size.), other.datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr., other.datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size.); |
| 3625 | } |
| 3626 | } |
| 3627 | |
| 3628 | Stringcxx . . $ doctest/String#::Stringcxx . . $ doctest/String#String(ced63f7c635d850d).() noexcept { |
| 3629 | bufcxx . . $ doctest/String#$anonymous_type_0#buf.[0] = '\0'; |
| 3630 | setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(); |
| 3631 | } |
| 3632 | |
| 3633 | Stringcxx . . $ doctest/String#::~cxx . . $ doctest/String#`~String`(ced63f7c635d850d).Stringcxx . . $ doctest/String#() { |
| 3634 | if(!isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) |
| 3635 | delete[] datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.; |
| 3636 | } // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks) |
| 3637 | |
| 3638 | Stringcxx . . $ doctest/String#::Stringcxx . . $ doctest/String#String(85c52e162fed56f9).(const char* in) |
| 3639 | : Stringcxx . . $ doctest/String#String(b51963283f2467a4).(in, strlen(in)) {} |
| 3640 | |
| 3641 | Stringcxx . . $ doctest/String#::Stringcxx . . $ doctest/String#String(b51963283f2467a4).(const char* in, size_typecxx . . $ doctest/String#size_type# in_size) { |
| 3642 | memcpy(allocatecxx . . $ doctest/String#allocate(f109d7e0a0ca42b3).(in_size), in, in_size); |
| 3643 | } |
| 3644 | |
| 3645 | Stringcxx . . $ doctest/String#::Stringcxx . . $ doctest/String#String(dc1b52b9d2bd778f).(stdcxx . . $ std/::istreamcxx . . $ std/istream#& in, size_typecxx . . $ doctest/String#size_type# in_size) { |
| 3646 | in.readcxx . . $ std/basic_istream#read(581542660947e936).(allocatecxx . . $ doctest/String#allocate(f109d7e0a0ca42b3).(in_size), in_size); |
| 3647 | } |
| 3648 | |
| 3649 | Stringcxx . . $ doctest/String#::Stringcxx . . $ doctest/String#String(895223ef195a8629).(const Stringcxx . . $ doctest/String#& other) { copycxx . . $ doctest/String#copy(895223ef195a8629).(other); } |
| 3650 | |
| 3651 | Stringcxx . . $ doctest/String#& Stringcxx . . $ doctest/String#::operatorcxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e).=(const Stringcxx . . $ doctest/String#& other) { |
| 3652 | if(this != &other) { |
| 3653 | if(!isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) |
| 3654 | delete[] datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.; |
| 3655 | |
| 3656 | copycxx . . $ doctest/String#copy(895223ef195a8629).(other); |
| 3657 | } |
| 3658 | |
| 3659 | return *this; |
| 3660 | } |
| 3661 | |
| 3662 | Stringcxx . . $ doctest/String#& Stringcxx . . $ doctest/String#::operatorcxx . . $ doctest/String#`operator+=`(7a57cc89010f9d7e).+=(const Stringcxx . . $ doctest/String#& other) { |
| 3663 | const size_typecxx . . $ doctest/String#size_type# my_old_size = sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).(); |
| 3664 | const size_typecxx . . $ doctest/String#size_type# other_size = other.sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).(); |
| 3665 | const size_typecxx . . $ doctest/String#size_type# total_size = my_old_size + other_size; |
| 3666 | if(isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) { |
| 3667 | if(total_size < lencxx . . $ doctest/String#len.) { |
| 3668 | // append to the current stack space |
| 3669 | memcpy(bufcxx . . $ doctest/String#$anonymous_type_0#buf. + my_old_size, other.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), other_size + 1); |
| 3670 | // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) |
| 3671 | setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(lastcxx . . $ doctest/String#last. - total_size); |
| 3672 | } else { |
| 3673 | // alloc new chunk |
| 3674 | char* temp = new char[total_size + 1]; |
| 3675 | // copy current data to new location before writing in the union |
| 3676 | memcpy(temp, bufcxx . . $ doctest/String#$anonymous_type_0#buf., my_old_size); // skip the +1 ('\0') for speed |
| 3677 | // update data in union |
| 3678 | setOnHeapcxx . . $ doctest/String#setOnHeap(ced63f7c635d850d).(); |
| 3679 | datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. = total_size; |
| 3680 | datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity. = datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. + 1; |
| 3681 | datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr. = temp; |
| 3682 | // transfer the rest of the data |
| 3683 | memcpy(datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr. + my_old_size, other.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), other_size + 1); |
| 3684 | } |
| 3685 | } else { |
| 3686 | if(datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity. > total_size) { |
| 3687 | // append to the current heap block |
| 3688 | datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. = total_size; |
| 3689 | memcpy(datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr. + my_old_size, other.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), other_size + 1); |
| 3690 | } else { |
| 3691 | // resize |
| 3692 | datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity. *= 2; |
| 3693 | if(datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity. <= total_size) |
| 3694 | datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity. = total_size + 1; |
| 3695 | // alloc new chunk |
| 3696 | char* temp = new char[datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity.]; |
| 3697 | // copy current data to new location before releasing it |
| 3698 | memcpy(temp, datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr., my_old_size); // skip the +1 ('\0') for speed |
| 3699 | // release old chunk |
| 3700 | delete[] datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.; |
| 3701 | // update the rest of the union members |
| 3702 | datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size. = total_size; |
| 3703 | datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr. = temp; |
| 3704 | // transfer the rest of the data |
| 3705 | memcpy(datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr. + my_old_size, other.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), other_size + 1); |
| 3706 | } |
| 3707 | } |
| 3708 | |
| 3709 | return *this; |
| 3710 | } |
| 3711 | |
| 3712 | Stringcxx . . $ doctest/String#::Stringcxx . . $ doctest/String#String(d76cbb63cd3dec44).(Stringcxx . . $ doctest/String#&& other) noexcept { |
| 3713 | memcpy(bufcxx . . $ doctest/String#$anonymous_type_0#buf., other.bufcxx . . $ doctest/String#$anonymous_type_0#buf., lencxx . . $ doctest/String#len.); |
| 3714 | other.bufcxx . . $ doctest/String#$anonymous_type_0#buf.[0] = '\0'; |
| 3715 | other.setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(); |
| 3716 | } |
| 3717 | |
| 3718 | Stringcxx . . $ doctest/String#& Stringcxx . . $ doctest/String#::operatorcxx . . $ doctest/String#`operator=`(35ff499bf129e9c0).=(Stringcxx . . $ doctest/String#&& other) noexcept { |
| 3719 | if(this != &other) { |
| 3720 | if(!isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) |
| 3721 | delete[] datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.; |
| 3722 | memcpy(bufcxx . . $ doctest/String#$anonymous_type_0#buf., other.bufcxx . . $ doctest/String#$anonymous_type_0#buf., lencxx . . $ doctest/String#len.); |
| 3723 | other.bufcxx . . $ doctest/String#$anonymous_type_0#buf.[0] = '\0'; |
| 3724 | other.setLastcxx . . $ doctest/String#setLast(6bab9b75950d6f3).(); |
| 3725 | } |
| 3726 | return *this; |
| 3727 | } |
| 3728 | |
| 3729 | char Stringcxx . . $ doctest/String#::operatorcxx . . $ doctest/String#`operator[]`(79e595215a5a5637).[](size_typecxx . . $ doctest/String#size_type# i) const { |
| 3730 | return const_cast<Stringcxx . . $ doctest/String#*>(this)->operator[](i); |
| 3731 | } |
| 3732 | |
| 3733 | char& Stringcxx . . $ doctest/String#::operatorcxx . . $ doctest/String#`operator[]`(584c111b47189dd).[](size_typecxx . . $ doctest/String#size_type# i) { |
| 3734 | if(isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) |
| 3735 | return reinterpret_cast<char*>(bufcxx . . $ doctest/String#$anonymous_type_0#buf.)[i]; |
| 3736 | return datacxx . . $ doctest/String#$anonymous_type_0#data..ptrcxx . . $ doctest/String#view#ptr.[i]; |
| 3737 | } |
| 3738 | |
| 3739 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:140:9`!("-Wmaybe-uninitialized") |
| 3740 | Stringcxx . . $ doctest/String#::size_typecxx . . $ doctest/String#size_type# Stringcxx . . $ doctest/String#::sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).() const { |
| 3741 | if(isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) |
| 3742 | return lastcxx . . $ doctest/String#last. - (size_typecxx . . $ doctest/String#size_type#(bufcxx . . $ doctest/String#$anonymous_type_0#buf.[lastcxx . . $ doctest/String#last.]) & 31); // using "last" would work only if "len" is 32 |
| 3743 | return datacxx . . $ doctest/String#$anonymous_type_0#data..sizecxx . . $ doctest/String#view#size.; |
| 3744 | } |
| 3745 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 3746 | |
| 3747 | Stringcxx . . $ doctest/String#::size_typecxx . . $ doctest/String#size_type# Stringcxx . . $ doctest/String#::capacitycxx . . $ doctest/String#capacity(ddd8539a2fcdd4ce).() const { |
| 3748 | if(isOnStackcxx . . $ doctest/String#isOnStack(3482b152b9333168).()) |
| 3749 | return lencxx . . $ doctest/String#len.; |
| 3750 | return datacxx . . $ doctest/String#$anonymous_type_0#data..capacitycxx . . $ doctest/String#view#capacity.; |
| 3751 | } |
| 3752 | |
| 3753 | Stringcxx . . $ doctest/String# Stringcxx . . $ doctest/String#::substrcxx . . $ doctest/String#substr(6446a019ca443405).(size_typecxx . . $ doctest/String#size_type# pos, size_typecxx . . $ doctest/String#size_type# cnt) && { |
| 3754 | cnt = stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).(cnt, sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).() - 1 - pos); |
| 3755 | char* cptr = c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); |
| 3756 | memmove(cptr, cptr + pos, cnt); |
| 3757 | setSizecxx . . $ doctest/String#setSize(6bab9b75950d6f3).(cnt); |
| 3758 | return stdcxx . . $ std/::move(*this); |
| 3759 | } |
| 3760 | |
| 3761 | Stringcxx . . $ doctest/String# Stringcxx . . $ doctest/String#::substrcxx . . $ doctest/String#substr(f9da8990705ceeec).(size_typecxx . . $ doctest/String#size_type# pos, size_typecxx . . $ doctest/String#size_type# cnt) const & { |
| 3762 | cnt = stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).(cnt, sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).() - 1 - pos); |
| 3763 | return Stringcxx . . $ doctest/String#{ c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).() + pos, cnt }; |
| 3764 | } |
| 3765 | |
| 3766 | Stringcxx . . $ doctest/String#::size_typecxx . . $ doctest/String#size_type# Stringcxx . . $ doctest/String#::findcxx . . $ doctest/String#find(8888c36a42ab742a).(char ch, size_typecxx . . $ doctest/String#size_type# pos) const { |
| 3767 | const char* begin = c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(); |
| 3768 | const char* end = begin + sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).(); |
| 3769 | const char* it = begin + pos; |
| 3770 | for (; it < end && *it != ch; it++); |
| 3771 | if (it < end) { return static_cast<size_typecxx . . $ doctest/String#size_type#>(it - begin); } |
| 3772 | else { return nposcxx . . $ doctest/String#npos.; } |
| 3773 | } |
| 3774 | |
| 3775 | Stringcxx . . $ doctest/String#::size_typecxx . . $ doctest/String#size_type# Stringcxx . . $ doctest/String#::rfindcxx . . $ doctest/String#rfind(8888c36a42ab742a).(char ch, size_typecxx . . $ doctest/String#size_type# pos) const { |
| 3776 | const char* begin = c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(); |
| 3777 | const char* it = begin + stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).(pos, sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).() - 1); |
| 3778 | for (; it >= begin && *it != ch; it--); |
| 3779 | if (it >= begin) { return static_cast<size_typecxx . . $ doctest/String#size_type#>(it - begin); } |
| 3780 | else { return nposcxx . . $ doctest/String#npos.; } |
| 3781 | } |
| 3782 | |
| 3783 | int Stringcxx . . $ doctest/String#::comparecxx . . $ doctest/String#compare(cd33d590a1eff847).(const char* other, bool no_case) const { |
| 3784 | if(no_case) |
| 3785 | return doctestcxx . . $ doctest/::stricmpcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/stricmp(5ae29d726ae57f88).(c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), other); |
| 3786 | return stdcxx . . $ std/::strcmp(c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), other); |
| 3787 | } |
| 3788 | |
| 3789 | int Stringcxx . . $ doctest/String#::comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(const Stringcxx . . $ doctest/String#& other, bool no_case) const { |
| 3790 | return comparecxx . . $ doctest/String#compare(cd33d590a1eff847).(other.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), no_case); |
| 3791 | } |
| 3792 | |
| 3793 | Stringcxx . . $ doctest/String# operatorcxx . . $ doctest/operator+(670c5a04c572f3f0).+(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return Stringcxx . . $ doctest/String#String(895223ef195a8629).(lhs) +=cxx . . $ doctest/String#`operator+=`(7a57cc89010f9d7e). rhs; } |
| 3794 | |
| 3795 | bool operatorcxx . . $ doctest/`operator==`(d6e8d493c6efe0c6).==(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return lhs.comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs) == 0; } |
| 3796 | bool operatorcxx . . $ doctest/`operator!=`(d6e8d493c6efe0c6).!=(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return lhs.comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs) != 0; } |
| 3797 | bool operatorcxx . . $ doctest/`operator<`(d6e8d493c6efe0c6).< (const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return lhs.comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs) < 0; } |
| 3798 | bool operatorcxx . . $ doctest/`operator>`(d6e8d493c6efe0c6).> (const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return lhs.comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs) > 0; } |
| 3799 | bool operatorcxx . . $ doctest/`operator<=`(d6e8d493c6efe0c6).<=(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return (lhs !=cxx . . $ doctest/`operator!=`(d6e8d493c6efe0c6). rhs) ? lhs.comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs) < 0 : true; } |
| 3800 | bool operatorcxx . . $ doctest/`operator>=`(d6e8d493c6efe0c6).>=(const Stringcxx . . $ doctest/String#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return (lhs !=cxx . . $ doctest/`operator!=`(d6e8d493c6efe0c6). rhs) ? lhs.comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs) > 0 : true; } |
| 3801 | |
| 3802 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/`operator<<`(5bde827599dcb38d).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& s, const Stringcxx . . $ doctest/String#& in) { return s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). in.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(); } |
| 3803 | |
| 3804 | Containscxx . . $ doctest/Contains#::Containscxx . . $ doctest/Contains#Contains(895223ef195a8629).(const Stringcxx . . $ doctest/String#& str) : stringcxx . . $ doctest/Contains#string.(str) { } |
| 3805 | |
| 3806 | bool Containscxx . . $ doctest/Contains#::checkWithcxx . . $ doctest/Contains#checkWith(93a6d14c73fd6414).(const Stringcxx . . $ doctest/String#& other) const { |
| 3807 | return strstr(other.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), stringcxx . . $ doctest/Contains#string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()) != nullptr; |
| 3808 | } |
| 3809 | |
| 3810 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(d29021b6de6836f0).(const Containscxx . . $ doctest/Contains#& in) { |
| 3811 | return "Contains( "cxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). in.stringcxx . . $ doctest/Contains#string. +cxx . . $ doctest/operator+(670c5a04c572f3f0). " )"cxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 3812 | } |
| 3813 | |
| 3814 | bool operatorcxx . . $ doctest/`operator==`(91470ad91e5cc952).==(const Stringcxx . . $ doctest/String#& lhs, const Containscxx . . $ doctest/Contains#& rhs) { return rhs.checkWithcxx . . $ doctest/Contains#checkWith(93a6d14c73fd6414).(lhs); } |
| 3815 | bool operatorcxx . . $ doctest/`operator==`(f038f1112a1023e2).==(const Containscxx . . $ doctest/Contains#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return lhs.checkWithcxx . . $ doctest/Contains#checkWith(93a6d14c73fd6414).(rhs); } |
| 3816 | bool operatorcxx . . $ doctest/`operator!=`(91470ad91e5cc952).!=(const Stringcxx . . $ doctest/String#& lhs, const Containscxx . . $ doctest/Contains#& rhs) { return !rhs.checkWithcxx . . $ doctest/Contains#checkWith(93a6d14c73fd6414).(lhs); } |
| 3817 | bool operatorcxx . . $ doctest/`operator!=`(f038f1112a1023e2).!=(const Containscxx . . $ doctest/Contains#& lhs, const Stringcxx . . $ doctest/String#& rhs) { return !lhs.checkWithcxx . . $ doctest/Contains#checkWith(93a6d14c73fd6414).(rhs); } |
| 3818 | |
| 3819 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 3820 | void color_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/color_to_stream(ba4ce4d1fee3d52b).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#&, Colorcxx . . $ doctest/Color/::Enumcxx . . $ doctest/Color/Enum#) DOCTEST_BRANCH_ON_DISABLEDcxx . . $ `tests/thirdparty/doctest/doctest.h:3239:9`!({}, ;) |
| 3821 | } // namespace |
| 3822 | |
| 3823 | namespace Colorcxx . . $ doctest/Color/ { |
| 3824 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& s, Colorcxx . . $ doctest/Color/::Enumcxx . . $ doctest/Color/Enum# code) { |
| 3825 | color_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/color_to_stream(ba4ce4d1fee3d52b).(s, code); |
| 3826 | return s; |
| 3827 | } |
| 3828 | } // namespace Color |
| 3829 | |
| 3830 | // clang-format off |
| 3831 | const char* assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) { |
| 3832 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4061) // enum 'x' in switch of enum 'y' is not explicitly handled |
| 3833 | #define DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:3833:13`!(assert_type) case assertType::DT_ ## assert_type: return #assert_type |
| 3834 | #define DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ `tests/thirdparty/doctest/doctest.h:3834:13`!(assert_type) \ |
| 3835 | DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:3833:13`!(WARN_ ## assert_type); \ |
| 3836 | DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:3833:13`!(CHECK_ ## assert_type); \ |
| 3837 | DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:3833:13`!(REQUIRE_ ## assert_type) |
| 3838 | switch(at) { |
| 3839 | DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ doctest/assertType/(WARN); |
| 3840 | DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ `tests/thirdparty/doctest/doctest.h:3833:13`!(CHECK); |
| 3841 | DOCTEST_GENERATE_ASSERT_TYPE_CASEcxx . . $ doctest/assertType/(REQUIRE); |
| 3842 | |
| 3843 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ `tests/thirdparty/doctest/doctest.h:3834:13`!(FALSE); |
| 3844 | |
| 3845 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_WARN_THROWS.(THROWS); |
| 3846 | |
| 3847 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ `tests/thirdparty/doctest/doctest.h:3834:13`!(THROWS_AS); |
| 3848 | |
| 3849 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ `tests/thirdparty/doctest/doctest.h:3834:13`!(THROWS_WITH); |
| 3850 | |
| 3851 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/(THROWS_WITH_AS); |
| 3852 | |
| 3853 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_CHECK_NOTHROW.(NOTHROW); |
| 3854 | |
| 3855 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_CHECK_EQ.(EQ); |
| 3856 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_WARN_NE.(NE); |
| 3857 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_REQUIRE_GT.(GT); |
| 3858 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/(LT); |
| 3859 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_WARN_GE.(GE); |
| 3860 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/(LE); |
| 3861 | |
| 3862 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ doctest/assertType/DT_REQUIRE_UNARY.(UNARY); |
| 3863 | DOCTEST_GENERATE_ASSERT_TYPE_CASEScxx . . $ `tests/thirdparty/doctest/doctest.h:3834:13`!(UNARY_FALSE); |
| 3864 | |
| 3865 | default: DOCTEST_INTERNAL_ERRORcxx . . $ `tests/thirdparty/doctest/doctest.h:3301:9`!("Tried stringifying invalid assert type!"); |
| 3866 | } |
| 3867 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 3868 | } |
| 3869 | // clang-format on |
| 3870 | |
| 3871 | const char* failureStringcxx . . $ doctest/failureString(90cddebe9d4cd0df).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) { |
| 3872 | if(at & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn.) //!OCLINT bitwise operator in conditional |
| 3873 | return "WARNING"; |
| 3874 | if(at & assertTypecxx . . $ doctest/assertType/::is_checkcxx . . $ doctest/assertType/is_check.) //!OCLINT bitwise operator in conditional |
| 3875 | return "ERROR"; |
| 3876 | if(at & assertTypecxx . . $ doctest/assertType/::is_requirecxx . . $ doctest/assertType/is_require.) //!OCLINT bitwise operator in conditional |
| 3877 | return "FATAL ERROR"; |
| 3878 | return ""; |
| 3879 | } |
| 3880 | |
| 3881 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wnull-dereference") |
| 3882 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:140:9`!("-Wnull-dereference") |
| 3883 | // depending on the current options this will remove the path of filenames |
| 3884 | const char* skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(const char* file) { |
| 3885 | #ifndef DOCTEST_CONFIG_DISABLE |
| 3886 | if(getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->no_path_in_filenamescxx . . $ doctest/ContextOptions#no_path_in_filenames.) { |
| 3887 | auto back = stdcxx . . $ std/::strrchr(file, '\\'); |
| 3888 | auto forward = stdcxx . . $ std/::strrchr(file, '/'); |
| 3889 | if(back || forward) { |
| 3890 | if(back > forward) |
| 3891 | forward = back; |
| 3892 | return forward + 1; |
| 3893 | } |
| 3894 | } |
| 3895 | #endif // DOCTEST_CONFIG_DISABLE |
| 3896 | return file; |
| 3897 | } |
| 3898 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 3899 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 3900 | |
| 3901 | bool SubcaseSignaturecxx . . $ doctest/SubcaseSignature#::operatorcxx . . $ doctest/SubcaseSignature#`operator==`(8edd893d954f3f8).==(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& other) const { |
| 3902 | return m_linecxx . . $ doctest/SubcaseSignature#m_line. == other.m_linecxx . . $ doctest/SubcaseSignature#m_line. |
| 3903 | && stdcxx . . $ std/::strcmp(m_filecxx . . $ doctest/SubcaseSignature#m_file., other.m_filecxx . . $ doctest/SubcaseSignature#m_file.) == 0 |
| 3904 | && m_namecxx . . $ doctest/SubcaseSignature#m_name. ==cxx . . $ doctest/`operator==`(d6e8d493c6efe0c6). other.m_namecxx . . $ doctest/SubcaseSignature#m_name.; |
| 3905 | } |
| 3906 | |
| 3907 | bool SubcaseSignaturecxx . . $ doctest/SubcaseSignature#::operatorcxx . . $ doctest/SubcaseSignature#`operator<`(8edd893d954f3f8).<(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& other) const { |
| 3908 | if(m_linecxx . . $ doctest/SubcaseSignature#m_line. != other.m_linecxx . . $ doctest/SubcaseSignature#m_line.) |
| 3909 | return m_linecxx . . $ doctest/SubcaseSignature#m_line. < other.m_linecxx . . $ doctest/SubcaseSignature#m_line.; |
| 3910 | if(stdcxx . . $ std/::strcmp(m_filecxx . . $ doctest/SubcaseSignature#m_file., other.m_filecxx . . $ doctest/SubcaseSignature#m_file.) != 0) |
| 3911 | return stdcxx . . $ std/::strcmp(m_filecxx . . $ doctest/SubcaseSignature#m_file., other.m_filecxx . . $ doctest/SubcaseSignature#m_file.) < 0; |
| 3912 | return m_namecxx . . $ doctest/SubcaseSignature#m_name..comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(other.m_namecxx . . $ doctest/SubcaseSignature#m_name.) < 0; |
| 3913 | } |
| 3914 | |
| 3915 | DOCTEST_DEFINE_INTERFACEcxx . . $ `tests/thirdparty/doctest/doctest.h:415:9`!(IContextScope) |
| 3916 | |
| 3917 | namespace detailcxx . . $ doctest/detail/ { |
| 3918 | void filldatacxx . . $ doctest/detail/filldata#<const void*>::fillcxx . . $ doctest/detail/filldata#fill(d18dc10aeff441c9).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* stream, const void* in) { |
| 3919 | if (in) { *stream <<cxx . . $ std/basic_ostream#`operator<<`(9738662a6fe8335). in; } |
| 3920 | else { *stream <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "nullptr"; } |
| 3921 | } |
| 3922 | |
| 3923 | template <typename T> |
| 3924 | Stringcxx . . $ doctest/String# toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(T t) { |
| 3925 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* os = tlssPushcxx . . $ doctest/detail/tlssPush(a0ce4335f407e5ba).(); |
| 3926 | os->operatorcxx . . $ std/basic_ostream#`operator<<`(27710a91a60e3193).<<(t); |
| 3927 | return tlssPopcxx . . $ doctest/detail/tlssPop(352b1a6751d00680).(); |
| 3928 | } |
| 3929 | } |
| 3930 | |
| 3931 | #ifdef DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 3932 | String toString(const char* in) { return String("\"") + (in ? in : "{null string}") + "\""; } |
| 3933 | #endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING |
| 3934 | |
| 3935 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! >= DOCTEST_COMPILERcxx . . $ `tests/thirdparty/doctest/doctest.h:77:9`!(19, 20, 0) |
| 3936 | // see this issue on why this is needed: https://github.com/doctest/doctest/issues/183 |
| 3937 | String toString(const std::string& in) { return in.c_str(); } |
| 3938 | #endif // VS 2019 |
| 3939 | |
| 3940 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(8640a5001b532af8).(Stringcxx . . $ doctest/String# in) { return incxx . . $ doctest/String#String(d76cbb63cd3dec44).; } |
| 3941 | |
| 3942 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(cb814b334a4c676d).(stdcxx . . $ std/::nullptr_tcxx . . $ std/nullptr_t#) { return "nullptr"cxx . . $ doctest/String#String(85c52e162fed56f9).; } |
| 3943 | |
| 3944 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(5fb951c085b6e368).(bool in) { return incxx . . $ doctest/String#String(85c52e162fed56f9). ? "true" : "false"; } |
| 3945 | |
| 3946 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(892a074b123f01ad).(float in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3947 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(c0754ba2ddc3e312).(double in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3948 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(7affd6024264b61e).(double long in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3949 | |
| 3950 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(cab5051ee12c15d3).(char in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(static_cast<signed>(in)); } |
| 3951 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(16d3a4d5435246ff).(char signed in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(static_cast<signed>(in)); } |
| 3952 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(e20a7a7e50e2867c).(char unsigned in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(static_cast<unsigned>(in)); } |
| 3953 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(d73d3ea0da147730).(short in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3954 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(c84eaa99e48537a3).(short unsigned in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3955 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(42cd9c6e4f826fde).(signed in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3956 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(e9c0d58938672e5b).(unsigned in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3957 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(2aec1de9e2361335).(long in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3958 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(9780499b6cac838a).(long unsigned in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3959 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(292e4eec053ea6c5).(long long in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3960 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(6bbe65161bf1928a).(long long unsigned in) { return toStreamLitcxx . . $ doctest/detail/toStreamLit(782d28b255439d6e).(in); } |
| 3961 | |
| 3962 | Approxcxx . . $ doctest/Approx#::Approxcxx . . $ doctest/Approx#Approx(ba8836b59fb42830).(double value) |
| 3963 | : m_epsiloncxx . . $ doctest/Approx#m_epsilon.(static_cast<double>(stdcxx . . $ std/::numeric_limits<float>::epsilon()) * 100) |
| 3964 | , m_scalecxx . . $ doctest/Approx#m_scale.(1.0) |
| 3965 | , m_valuecxx . . $ doctest/Approx#m_value.(value) {} |
| 3966 | |
| 3967 | Approxcxx . . $ doctest/Approx# Approxcxx . . $ doctest/Approx#::operatorcxx . . $ doctest/Approx#`operator()`(4d0f62d01348e44d).()(double value) const { |
| 3968 | Approxcxx . . $ doctest/Approx# approxcxx . . $ doctest/Approx#Approx(ba8836b59fb42830).(value); |
| 3969 | approx.epsiloncxx . . $ doctest/Approx#epsilon(1d9f6b6104c65758).(m_epsiloncxx . . $ doctest/Approx#m_epsilon.); |
| 3970 | approx.scalecxx . . $ doctest/Approx#scale(1d9f6b6104c65758).(m_scalecxx . . $ doctest/Approx#m_scale.); |
| 3971 | return approx; |
| 3972 | } |
| 3973 | |
| 3974 | Approxcxx . . $ doctest/Approx#& Approxcxx . . $ doctest/Approx#::epsiloncxx . . $ doctest/Approx#epsilon(1d9f6b6104c65758).(double newEpsilon) { |
| 3975 | m_epsiloncxx . . $ doctest/Approx#m_epsilon. = newEpsilon; |
| 3976 | return *this; |
| 3977 | } |
| 3978 | Approxcxx . . $ doctest/Approx#& Approxcxx . . $ doctest/Approx#::scalecxx . . $ doctest/Approx#scale(1d9f6b6104c65758).(double newScale) { |
| 3979 | m_scalecxx . . $ doctest/Approx#m_scale. = newScale; |
| 3980 | return *this; |
| 3981 | } |
| 3982 | |
| 3983 | bool operatorcxx . . $ doctest/`operator==`(c76850509ca899).==(double lhs, const Approxcxx . . $ doctest/Approx#& rhs) { |
| 3984 | // Thanks to Richard Harris for his help refining this formula |
| 3985 | return stdcxx . . $ std/::fabs(lhs - rhs.m_valuecxx . . $ doctest/Approx#m_value.) < |
| 3986 | rhs.m_epsiloncxx . . $ doctest/Approx#m_epsilon. * (rhs.m_scalecxx . . $ doctest/Approx#m_scale. + stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).<double>(stdcxx . . $ std/::fabs(lhs), stdcxx . . $ std/::fabs(rhs.m_valuecxx . . $ doctest/Approx#m_value.))); |
| 3987 | } |
| 3988 | bool operatorcxx . . $ doctest/`operator==`(9af8b5d848f4c114).==(const Approxcxx . . $ doctest/Approx#& lhs, double rhs) { return operatorcxx . . $ doctest/`operator==`(c76850509ca899).==(rhs, lhs); } |
| 3989 | bool operatorcxx . . $ doctest/`operator!=`(c76850509ca899).!=(double lhs, const Approxcxx . . $ doctest/Approx#& rhs) { return !operatorcxx . . $ doctest/`operator==`(c76850509ca899).==(lhs, rhs); } |
| 3990 | bool operatorcxx . . $ doctest/`operator!=`(9af8b5d848f4c114).!=(const Approxcxx . . $ doctest/Approx#& lhs, double rhs) { return !operatorcxx . . $ doctest/`operator==`(c76850509ca899).==(rhs, lhs); } |
| 3991 | bool operatorcxx . . $ doctest/`operator<=`(c76850509ca899).<=(double lhs, const Approxcxx . . $ doctest/Approx#& rhs) { return lhs < rhs.m_valuecxx . . $ doctest/Approx#m_value. || lhs ==cxx . . $ doctest/`operator==`(c76850509ca899). rhs; } |
| 3992 | bool operatorcxx . . $ doctest/`operator<=`(9af8b5d848f4c114).<=(const Approxcxx . . $ doctest/Approx#& lhs, double rhs) { return lhs.m_valuecxx . . $ doctest/Approx#m_value. < rhs || lhs ==cxx . . $ doctest/`operator==`(9af8b5d848f4c114). rhs; } |
| 3993 | bool operatorcxx . . $ doctest/`operator>=`(c76850509ca899).>=(double lhs, const Approxcxx . . $ doctest/Approx#& rhs) { return lhs > rhs.m_valuecxx . . $ doctest/Approx#m_value. || lhs ==cxx . . $ doctest/`operator==`(c76850509ca899). rhs; } |
| 3994 | bool operatorcxx . . $ doctest/`operator>=`(9af8b5d848f4c114).>=(const Approxcxx . . $ doctest/Approx#& lhs, double rhs) { return lhs.m_valuecxx . . $ doctest/Approx#m_value. > rhs || lhs ==cxx . . $ doctest/`operator==`(9af8b5d848f4c114). rhs; } |
| 3995 | bool operatorcxx . . $ doctest/`operator<`(c76850509ca899).<(double lhs, const Approxcxx . . $ doctest/Approx#& rhs) { return lhs < rhs.m_valuecxx . . $ doctest/Approx#m_value. && lhs !=cxx . . $ doctest/`operator!=`(c76850509ca899). rhs; } |
| 3996 | bool operatorcxx . . $ doctest/`operator<`(9af8b5d848f4c114).<(const Approxcxx . . $ doctest/Approx#& lhs, double rhs) { return lhs.m_valuecxx . . $ doctest/Approx#m_value. < rhs && lhs !=cxx . . $ doctest/`operator!=`(9af8b5d848f4c114). rhs; } |
| 3997 | bool operatorcxx . . $ doctest/`operator>`(c76850509ca899).>(double lhs, const Approxcxx . . $ doctest/Approx#& rhs) { return lhs > rhs.m_valuecxx . . $ doctest/Approx#m_value. && lhs !=cxx . . $ doctest/`operator!=`(c76850509ca899). rhs; } |
| 3998 | bool operatorcxx . . $ doctest/`operator>`(9af8b5d848f4c114).>(const Approxcxx . . $ doctest/Approx#& lhs, double rhs) { return lhs.m_valuecxx . . $ doctest/Approx#m_value. > rhs && lhs !=cxx . . $ doctest/`operator!=`(9af8b5d848f4c114). rhs; } |
| 3999 | |
| 4000 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(efbd83c3a9d15c7a).(const Approxcxx . . $ doctest/Approx#& in) { |
| 4001 | return "Approx( "cxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). doctestcxx . . $ doctest/::toStringcxx . . $ doctest/toString(c0754ba2ddc3e312).(in.m_valuecxx . . $ doctest/Approx#m_value.) +cxx . . $ doctest/operator+(670c5a04c572f3f0). " )"cxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 4002 | } |
| 4003 | const ContextOptionscxx . . $ doctest/ContextOptions#* getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).() { return DOCTEST_BRANCH_ON_DISABLEDcxx . . $ `tests/thirdparty/doctest/doctest.h:3239:9`!(nullptr, g_cs); } |
| 4004 | |
| 4005 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4738) |
| 4006 | template <typename F> |
| 4007 | IsNaNcxx . . $ doctest/IsNaN#<F>::operatorcxx . . $ doctest/IsNaN#`operator bool`(50ce9a9e25b4a850). bool() const { |
| 4008 | return stdcxx . . $ std/::isnan(valuecxx . . $ doctest/IsNaN#value.) ^ flippedcxx . . $ doctest/IsNaN#flipped.; |
| 4009 | } |
| 4010 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 4011 | template struct DOCTEST_INTERFACE_DEFcxx . . $ `tests/thirdparty/doctest/doctest.h:344:9`! IsNaNcxx . . $ doctest/IsNaN#<float>; |
| 4012 | template struct DOCTEST_INTERFACE_DEFcxx . . $ `tests/thirdparty/doctest/doctest.h:344:9`! IsNaNcxx . . $ doctest/IsNaN#<double>; |
| 4013 | template struct DOCTEST_INTERFACE_DEFcxx . . $ `tests/thirdparty/doctest/doctest.h:344:9`! IsNaNcxx . . $ doctest/IsNaN#<long double>; |
| 4014 | template <typename F> |
| 4015 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(cb5a4541155eb872).(IsNaNcxx . . $ doctest/IsNaN#<F> in) { return Stringcxx . . $ doctest/String#(in.flippedcxx . . $ doctest/IsNaN#flipped. ? "! " : "") +cxx . . $ doctest/operator+(670c5a04c572f3f0). "IsNaN( "cxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). doctestcxx . . $ doctest/::toStringcxx . . $ doctest/toString(42cd9c6e4f826fde).(in.valuecxx . . $ doctest/IsNaN#value.) +cxx . . $ doctest/operator+(670c5a04c572f3f0). " )"; } |
| 4016 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(a812786e0123a700).(IsNaNcxx . . $ doctest/IsNaN#<float> in) { return toStringcxx . . $ doctest/toString(cb5a4541155eb872).<float>(in); } |
| 4017 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(549a1e4eb289f6e8).(IsNaNcxx . . $ doctest/IsNaN#<double> in) { return toStringcxx . . $ doctest/toString(cb5a4541155eb872).<double>(in); } |
| 4018 | Stringcxx . . $ doctest/String# toStringcxx . . $ doctest/toString(e72a53e74b84eac2).(IsNaNcxx . . $ doctest/IsNaN#<double long> in) { return toStringcxx . . $ doctest/toString(cb5a4541155eb872).<double long>(in); } |
| 4019 | |
| 4020 | } // namespace doctest |
| 4021 | |
| 4022 | #ifdef DOCTEST_CONFIG_DISABLE |
| 4023 | namespace doctest { |
| 4024 | Context::Context(int, const char* const*) {} |
| 4025 | Context::~Context() = default; |
| 4026 | void Context::applyCommandLine(int, const char* const*) {} |
| 4027 | void Context::addFilter(const char*, const char*) {} |
| 4028 | void Context::clearFilters() {} |
| 4029 | void Context::setOption(const char*, bool) {} |
| 4030 | void Context::setOption(const char*, int) {} |
| 4031 | void Context::setOption(const char*, const char*) {} |
| 4032 | bool Context::shouldExit() { return false; } |
| 4033 | void Context::setAsDefaultForAssertsOutOfTestCases() {} |
| 4034 | void Context::setAssertHandler(detail::assert_handler) {} |
| 4035 | void Context::setCout(std::ostream*) {} |
| 4036 | int Context::run() { return 0; } |
| 4037 | |
| 4038 | int IReporter::get_num_active_contexts() { return 0; } |
| 4039 | const IContextScope* const* IReporter::get_active_contexts() { return nullptr; } |
| 4040 | int IReporter::get_num_stringified_contexts() { return 0; } |
| 4041 | const String* IReporter::get_stringified_contexts() { return nullptr; } |
| 4042 | |
| 4043 | int registerReporter(const char*, int, IReporter*) { return 0; } |
| 4044 | |
| 4045 | } // namespace doctest |
| 4046 | #else // DOCTEST_CONFIG_DISABLE |
| 4047 | |
| 4048 | #if !defined(DOCTEST_CONFIG_COLORS_NONE) |
| 4049 | #if !defined(DOCTEST_CONFIG_COLORS_WINDOWS) && !defined(DOCTEST_CONFIG_COLORS_ANSI) |
| 4050 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 4051 | #define DOCTEST_CONFIG_COLORS_WINDOWS |
| 4052 | #else // linux |
| 4053 | #define DOCTEST_CONFIG_COLORS_ANSIcxx . . $ `tests/thirdparty/doctest/doctest.h:4053:9`! |
| 4054 | #endif // platform |
| 4055 | #endif // DOCTEST_CONFIG_COLORS_WINDOWS && DOCTEST_CONFIG_COLORS_ANSI |
| 4056 | #endif // DOCTEST_CONFIG_COLORS_NONE |
| 4057 | |
| 4058 | namespace doctest_detail_test_suite_nscxx . . $ doctest_detail_test_suite_ns/ { |
| 4059 | // holds the current test suite |
| 4060 | doctestcxx . . $ doctest/::detailcxx . . $ doctest/detail/::TestSuitecxx . . $ doctest/detail/TestSuite#& getCurrentTestSuitecxx . . $ doctest_detail_test_suite_ns/getCurrentTestSuite(135872ee19a66646).() { |
| 4061 | static doctestcxx . . $ doctest/::detailcxx . . $ doctest/detail/::TestSuitecxx . . $ doctest/detail/TestSuite# data{}; |
| 4062 | return data; |
| 4063 | } |
| 4064 | } // namespace doctest_detail_test_suite_ns |
| 4065 | |
| 4066 | namespace doctestcxx . . $ doctest/ { |
| 4067 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 4068 | // the int (priority) is part of the key for automatic sorting - sadly one can register a |
| 4069 | // reporter with a duplicate name and a different priority but hopefully that won't happen often :| |
| 4070 | using reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap# = stdcxx . . $ std/::mapcxx . . $ std/map#<stdcxx . . $ std/::pair<int, Stringcxx . . $ doctest/String#>, reporterCreatorFunccxx . . $ doctest/detail/reporterCreatorFunc#>; |
| 4071 | |
| 4072 | reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#& getReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getReporters(be1c6a749067b56).() { |
| 4073 | static reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap# datacxx . . $ std/map#map(49f6e7a06ebc5aa8).; |
| 4074 | return data; |
| 4075 | } |
| 4076 | reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#& getListenerscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getListeners(be1c6a749067b56).() { |
| 4077 | static reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap# datacxx . . $ std/map#map(49f6e7a06ebc5aa8).; |
| 4078 | return data; |
| 4079 | } |
| 4080 | } // namespace |
| 4081 | namespace detailcxx . . $ doctest/detail/ { |
| 4082 | #define DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(function, ...) \ |
| 4083 | for(auto& curr_rep : g_cs->reporters_currently_used) \ |
| 4084 | curr_rep->function(__VA_ARGS__) |
| 4085 | |
| 4086 | bool checkIfShouldThrowcxx . . $ doctest/detail/checkIfShouldThrow(5b702595a4a6849e).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) { |
| 4087 | if(at & assertTypecxx . . $ doctest/assertType/::is_requirecxx . . $ doctest/assertType/is_require.) //!OCLINT bitwise operator in conditional |
| 4088 | return true; |
| 4089 | |
| 4090 | if((at & assertTypecxx . . $ doctest/assertType/::is_checkcxx . . $ doctest/assertType/is_check.) //!OCLINT bitwise operator in conditional |
| 4091 | && getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->abort_aftercxx . . $ doctest/ContextOptions#abort_after. > 0 && |
| 4092 | (g_cscxx . . $ doctest/detail/g_cs.->numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. + g_cscxx . . $ doctest/detail/g_cs.->numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic.) >= |
| 4093 | getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->abort_aftercxx . . $ doctest/ContextOptions#abort_after.) |
| 4094 | return true; |
| 4095 | |
| 4096 | return false; |
| 4097 | } |
| 4098 | |
| 4099 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 4100 | DOCTEST_NORETURNcxx . . $ `tests/thirdparty/doctest/doctest.h:373:9`! void throwExceptioncxx . . $ doctest/detail/throwException(49f6e7a06ebc5aa8).() { |
| 4101 | g_cscxx . . $ doctest/detail/g_cs.->shouldLogCurrentExceptioncxx . . $ doctest/detail/ContextState#shouldLogCurrentException. =cxx . . $ std/atomic#`operator=`(4264aff4942d46ac). false; |
| 4102 | throw TestFailureExceptioncxx . . $ doctest/detail/TestFailureException#(); // NOLINT(hicpp-exception-baseclass) |
| 4103 | } |
| 4104 | #else // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 4105 | void throwException() {} |
| 4106 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 4107 | } // namespace detail |
| 4108 | |
| 4109 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 4110 | using namespace detail; |
| 4111 | // matching of a string against a wildcard mask (case sensitivity configurable) taken from |
| 4112 | // https://www.codeproject.com/Articles/1088/Wildcard-string-compare-globbing |
| 4113 | int wildcmpcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/wildcmp(ef8467ff91128e55).(const char* str, const char* wild, bool caseSensitive) { |
| 4114 | const char* cp = str; |
| 4115 | const char* mp = wild; |
| 4116 | |
| 4117 | while((*str) && (*wild != '*')) { |
| 4118 | if((caseSensitive ? (*wild != *str) : (tolower(*wild) != tolower(*str))) && |
| 4119 | (*wild != '?')) { |
| 4120 | return 0; |
| 4121 | } |
| 4122 | wild++; |
| 4123 | str++; |
| 4124 | } |
| 4125 | |
| 4126 | while(*str) { |
| 4127 | if(*wild == '*') { |
| 4128 | if(!*++wild) { |
| 4129 | return 1; |
| 4130 | } |
| 4131 | mp = wild; |
| 4132 | cp = str + 1; |
| 4133 | } else if((caseSensitive ? (*wild == *str) : (tolower(*wild) == tolower(*str))) || |
| 4134 | (*wild == '?')) { |
| 4135 | wild++; |
| 4136 | str++; |
| 4137 | } else { |
| 4138 | wild = mp; //!OCLINT parameter reassignment |
| 4139 | str = cp++; //!OCLINT parameter reassignment |
| 4140 | } |
| 4141 | } |
| 4142 | |
| 4143 | while(*wild == '*') { |
| 4144 | wild++; |
| 4145 | } |
| 4146 | return !*wild; |
| 4147 | } |
| 4148 | |
| 4149 | // checks if the name matches any of the filters (and can be configured what to do when empty) |
| 4150 | bool matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(const char* name, const stdcxx . . $ std/::vectorcxx . . $ std/vector#<Stringcxx . . $ doctest/String#>& filters, bool matchEmpty, |
| 4151 | bool caseSensitive) { |
| 4152 | if (filters.emptycxx . . $ std/vector#empty(3482b152b9333168).() && matchEmpty) |
| 4153 | return true; |
| 4154 | for (auto& curr : filters) |
| 4155 | if (wildcmpcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/wildcmp(ef8467ff91128e55).(name, curr.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), caseSensitive)) |
| 4156 | return true; |
| 4157 | return false; |
| 4158 | } |
| 4159 | |
| 4160 | DOCTEST_NO_SANITIZE_INTEGERcxx . . $ `tests/thirdparty/doctest/doctest.h:397:9`! |
| 4161 | unsigned long long hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(1d3b295cc4392655).(unsigned long long a, unsigned long long b) { |
| 4162 | return (a << 5) + b; |
| 4163 | } |
| 4164 | |
| 4165 | // C string hash function (djb2) - taken from http://www.cse.yorku.ca/~oz/hash.html |
| 4166 | DOCTEST_NO_SANITIZE_INTEGERcxx . . $ `tests/thirdparty/doctest/doctest.h:397:9`! |
| 4167 | unsigned long long hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(13e38edef8977abd).(const char* str) { |
| 4168 | unsigned long long hash = 5381; |
| 4169 | char c; |
| 4170 | while ((c = *str++)) |
| 4171 | hash = ((hash << 5) + hash) + c; // hash * 33 + c |
| 4172 | return hash; |
| 4173 | } |
| 4174 | |
| 4175 | unsigned long long hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(39754418bb7585a3).(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& sig) { |
| 4176 | return hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(1d3b295cc4392655).(hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(1d3b295cc4392655).(hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(13e38edef8977abd).(sig.m_filecxx . . $ doctest/SubcaseSignature#m_file.), hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(13e38edef8977abd).(sig.m_namecxx . . $ doctest/SubcaseSignature#m_name..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).())), sig.m_linecxx . . $ doctest/SubcaseSignature#m_line.); |
| 4177 | } |
| 4178 | |
| 4179 | unsigned long long hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(c28f61303c3b0559).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<SubcaseSignaturecxx . . $ doctest/SubcaseSignature#>& sigs, size_tcxx . . $ doctest/size_t# count) { |
| 4180 | unsigned long long running = 0; |
| 4181 | auto end = sigs.begincxx . . $ std/vector#begin(d1e1699016b9d7e6).() + count; |
| 4182 | for (auto it = sigs.begincxx . . $ std/vector#begin(d1e1699016b9d7e6).(); it != end; it++) { |
| 4183 | running = hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(1d3b295cc4392655).(running, hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(39754418bb7585a3).(*it)); |
| 4184 | } |
| 4185 | return running; |
| 4186 | } |
| 4187 | |
| 4188 | unsigned long long hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(71f774fc95af0c1c).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<SubcaseSignaturecxx . . $ doctest/SubcaseSignature#>& sigs) { |
| 4189 | unsigned long long running = 0; |
| 4190 | for (const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& sig : sigs) { |
| 4191 | running = hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(1d3b295cc4392655).(running, hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(39754418bb7585a3).(sig)); |
| 4192 | } |
| 4193 | return running; |
| 4194 | } |
| 4195 | } // namespace |
| 4196 | namespace detailcxx . . $ doctest/detail/ { |
| 4197 | bool Subcasecxx . . $ doctest/detail/Subcase#::checkFilterscxx . . $ doctest/detail/Subcase#checkFilters(c9857a73d68e59ba).() { |
| 4198 | if (g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).() < size_tcxx . . $ doctest/size_t#(g_cscxx . . $ doctest/detail/g_cs.->subcase_filter_levelscxx . . $ doctest/ContextOptions#subcase_filter_levels.)) { |
| 4199 | if (!matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(m_signaturecxx . . $ doctest/detail/Subcase#m_signature..m_namecxx . . $ doctest/SubcaseSignature#m_name..c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(), g_cscxx . . $ doctest/detail/g_cs.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).6], true, g_cscxx . . $ doctest/detail/g_cs.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 4200 | return true; |
| 4201 | if (matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(m_signaturecxx . . $ doctest/detail/Subcase#m_signature..m_namecxx . . $ doctest/SubcaseSignature#m_name..c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(), g_cscxx . . $ doctest/detail/g_cs.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).7], false, g_cscxx . . $ doctest/detail/g_cs.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 4202 | return true; |
| 4203 | } |
| 4204 | return false; |
| 4205 | } |
| 4206 | |
| 4207 | Subcasecxx . . $ doctest/detail/Subcase#::Subcasecxx . . $ doctest/detail/Subcase#Subcase(bd3d96f577585b6d).(const Stringcxx . . $ doctest/String#& name, const char* file, int line) |
| 4208 | : m_signaturecxx . . $ doctest/detail/Subcase#m_signature.({name, file, line}) { |
| 4209 | if (!g_cscxx . . $ doctest/detail/g_cs.->reachedLeafcxx . . $ doctest/detail/ContextState#reachedLeaf.) { |
| 4210 | if (g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).() <= g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).() |
| 4211 | || g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).()] ==cxx . . $ doctest/SubcaseSignature#`operator==`(8edd893d954f3f8). m_signaturecxx . . $ doctest/detail/Subcase#m_signature.) { |
| 4212 | // Going down. |
| 4213 | if (checkFilterscxx . . $ doctest/detail/Subcase#checkFilters(c9857a73d68e59ba).()) { return; } |
| 4214 | |
| 4215 | g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(m_signaturecxx . . $ doctest/detail/Subcase#m_signature.); |
| 4216 | g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.++; |
| 4217 | m_enteredcxx . . $ doctest/detail/Subcase#m_entered. = true; |
| 4218 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/ContextState#reporters_currently_used.(subcase_start, m_signature); |
| 4219 | } |
| 4220 | } else { |
| 4221 | if (g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.] ==cxx . . $ doctest/SubcaseSignature#`operator==`(8edd893d954f3f8). m_signaturecxx . . $ doctest/detail/Subcase#m_signature.) { |
| 4222 | // This subcase is reentered via control flow. |
| 4223 | g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.++; |
| 4224 | m_enteredcxx . . $ doctest/detail/Subcase#m_entered. = true; |
| 4225 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/ContextState#reporters_currently_used.(subcase_start, m_signature); |
| 4226 | } else if (g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).() <= g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth. |
| 4227 | && g_cscxx . . $ doctest/detail/g_cs.->fullyTraversedSubcasescxx . . $ doctest/detail/ContextState#fullyTraversedSubcases..findcxx . . $ std/unordered_set#find(2e5c193be73a443f).(hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(1d3b295cc4392655).(hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(c28f61303c3b0559).(g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack., g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.), hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(39754418bb7585a3).(m_signaturecxx . . $ doctest/detail/Subcase#m_signature.))) |
| 4228 | ==cxx . . $ std/__detail/`operator==`(6ab342297d2d0253). g_cscxx . . $ doctest/detail/g_cs.->fullyTraversedSubcasescxx . . $ doctest/detail/ContextState#fullyTraversedSubcases..endcxx . . $ std/unordered_set#end(2c0786e257a8dc8e).()) { |
| 4229 | if (checkFilterscxx . . $ doctest/detail/Subcase#checkFilters(c9857a73d68e59ba).()) { return; } |
| 4230 | // This subcase is part of the one to be executed next. |
| 4231 | g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 4232 | g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..insertcxx . . $ std/vector#insert(134ef7853f0b3ebe).(g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..endcxx . . $ std/vector#end(55a6de06420d4903).(), |
| 4233 | g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..begincxx . . $ std/vector#begin(55a6de06420d4903).(), g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..begincxx . . $ std/vector#begin(55a6de06420d4903).() + g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.); |
| 4234 | g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(m_signaturecxx . . $ doctest/detail/Subcase#m_signature.); |
| 4235 | } |
| 4236 | } |
| 4237 | } |
| 4238 | |
| 4239 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4996) // std::uncaught_exception is deprecated in C++17 |
| 4240 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:140:9`!("-Wdeprecated-declarations") |
| 4241 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wdeprecated-declarations") |
| 4242 | |
| 4243 | Subcasecxx . . $ doctest/detail/Subcase#::~cxx . . $ doctest/detail/Subcase#`~Subcase`(ced63f7c635d850d).Subcasecxx . . $ doctest/detail/Subcase#() { |
| 4244 | if (m_enteredcxx . . $ doctest/detail/Subcase#m_entered.) { |
| 4245 | g_cscxx . . $ doctest/detail/g_cs.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth.--; |
| 4246 | |
| 4247 | if (!g_cscxx . . $ doctest/detail/g_cs.->reachedLeafcxx . . $ doctest/detail/ContextState#reachedLeaf.) { |
| 4248 | // Leaf. |
| 4249 | g_cscxx . . $ doctest/detail/g_cs.->fullyTraversedSubcasescxx . . $ doctest/detail/ContextState#fullyTraversedSubcases..insertcxx . . $ std/unordered_set#insert(a28476a145336fa6).(hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(71f774fc95af0c1c).(g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack.)); |
| 4250 | g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 4251 | g_cscxx . . $ doctest/detail/g_cs.->reachedLeafcxx . . $ doctest/detail/ContextState#reachedLeaf. = true; |
| 4252 | } else if (g_cscxx . . $ doctest/detail/g_cs.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..emptycxx . . $ std/vector#empty(3482b152b9333168).()) { |
| 4253 | // All children are finished. |
| 4254 | g_cscxx . . $ doctest/detail/g_cs.->fullyTraversedSubcasescxx . . $ doctest/detail/ContextState#fullyTraversedSubcases..insertcxx . . $ std/unordered_set#insert(a28476a145336fa6).(hashcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/hash(71f774fc95af0c1c).(g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack.)); |
| 4255 | } |
| 4256 | |
| 4257 | #if defined(__cpp_lib_uncaught_exceptionscxx . . $ `/usr/bin/../lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/version.h:67:12`!) && __cpp_lib_uncaught_exceptionscxx . . $ `/usr/bin/../lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/version.h:67:12`! >= 201411L && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) |
| 4258 | if(stdcxx . . $ std/::uncaught_exceptions() > 0 |
| 4259 | #else |
| 4260 | if(std::uncaught_exception() |
| 4261 | #endif |
| 4262 | && g_cscxx . . $ doctest/detail/g_cs.->shouldLogCurrentExceptioncxx . . $ doctest/detail/ContextState#shouldLogCurrentException.) { |
| 4263 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!( |
| 4264 | test_case_exception, {"exception thrown in subcase - will translate later " |
| 4265 | "when the whole test case has been exited (cannot " |
| 4266 | "translate while there is an active exception)", |
| 4267 | false}); |
| 4268 | g_cscxx . . $ doctest/detail/g_cs.->shouldLogCurrentExceptioncxx . . $ doctest/detail/ContextState#shouldLogCurrentException. =cxx . . $ std/atomic#`operator=`(4264aff4942d46ac). false; |
| 4269 | } |
| 4270 | |
| 4271 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/g_cs.(subcase_end, DOCTEST_EMPTYcxx . . $ `tests/thirdparty/doctest/doctest.h:347:9`!); |
| 4272 | } |
| 4273 | } |
| 4274 | |
| 4275 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 4276 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 4277 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 4278 | |
| 4279 | Subcasecxx . . $ doctest/detail/Subcase#::operatorcxx . . $ doctest/detail/Subcase#`operator bool`(50ce9a9e25b4a850). bool() const { return m_enteredcxx . . $ doctest/detail/Subcase#m_entered.; } |
| 4280 | |
| 4281 | Resultcxx . . $ doctest/detail/Result#::Resultcxx . . $ doctest/detail/Result#Result(7575036e894d6895).(bool passed, const Stringcxx . . $ doctest/String#& decomposition) |
| 4282 | : m_passedcxx . . $ doctest/detail/Result#m_passed.(passed) |
| 4283 | , m_decompcxx . . $ doctest/String#String(895223ef195a8629).(decomposition) {} |
| 4284 | |
| 4285 | ExpressionDecomposercxx . . $ doctest/detail/ExpressionDecomposer#::ExpressionDecomposercxx . . $ doctest/detail/ExpressionDecomposer#ExpressionDecomposer(f4fa529f8f884a0b).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) |
| 4286 | : m_atcxx . . $ doctest/detail/ExpressionDecomposer#m_at.(at) {} |
| 4287 | |
| 4288 | TestSuitecxx . . $ doctest/detail/TestSuite#& TestSuitecxx . . $ doctest/detail/TestSuite#::operatorcxx . . $ doctest/detail/TestSuite#`operator*`(3a199dafc7813329).*(const char* in) { |
| 4289 | m_test_suitecxx . . $ doctest/detail/TestSuite#m_test_suite. = in; |
| 4290 | return *this; |
| 4291 | } |
| 4292 | |
| 4293 | TestCasecxx . . $ doctest/detail/TestCase#::TestCasecxx . . $ doctest/detail/TestCase#TestCase(f16861b622be2a72).(funcTypecxx . . $ doctest/detail/funcType# test, const char* file, unsigned line, const TestSuitecxx . . $ doctest/detail/TestSuite#& test_suite, |
| 4294 | const Stringcxx . . $ doctest/String#& type, int template_id) { |
| 4295 | m_filecxx . . $ doctest/TestCaseData#m_file. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). filecxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 4296 | m_linecxx . . $ doctest/TestCaseData#m_line. = line; |
| 4297 | m_namecxx . . $ doctest/TestCaseData#m_name. = nullptr; // will be later overridden in operator* |
| 4298 | m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite. = test_suite.m_test_suitecxx . . $ doctest/detail/TestSuite#m_test_suite.; |
| 4299 | m_descriptioncxx . . $ doctest/TestCaseData#m_description. = test_suite.m_descriptioncxx . . $ doctest/detail/TestSuite#m_description.; |
| 4300 | m_skipcxx . . $ doctest/TestCaseData#m_skip. = test_suite.m_skipcxx . . $ doctest/detail/TestSuite#m_skip.; |
| 4301 | m_no_breakscxx . . $ doctest/TestCaseData#m_no_breaks. = test_suite.m_no_breakscxx . . $ doctest/detail/TestSuite#m_no_breaks.; |
| 4302 | m_no_outputcxx . . $ doctest/TestCaseData#m_no_output. = test_suite.m_no_outputcxx . . $ doctest/detail/TestSuite#m_no_output.; |
| 4303 | m_may_failcxx . . $ doctest/TestCaseData#m_may_fail. = test_suite.m_may_failcxx . . $ doctest/detail/TestSuite#m_may_fail.; |
| 4304 | m_should_failcxx . . $ doctest/TestCaseData#m_should_fail. = test_suite.m_should_failcxx . . $ doctest/detail/TestSuite#m_should_fail.; |
| 4305 | m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures. = test_suite.m_expected_failurescxx . . $ doctest/detail/TestSuite#m_expected_failures.; |
| 4306 | m_timeoutcxx . . $ doctest/TestCaseData#m_timeout. = test_suite.m_timeoutcxx . . $ doctest/detail/TestSuite#m_timeout.; |
| 4307 | |
| 4308 | m_testcxx . . $ doctest/detail/TestCase#m_test. = test; |
| 4309 | m_typecxx . . $ doctest/detail/TestCase#m_type. =cxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e). type; |
| 4310 | m_template_idcxx . . $ doctest/detail/TestCase#m_template_id. = template_id; |
| 4311 | } |
| 4312 | |
| 4313 | TestCasecxx . . $ doctest/detail/TestCase#::TestCasecxx . . $ doctest/detail/TestCase#TestCase(c4a62e2d35066111).(const TestCasecxx . . $ doctest/detail/TestCase#& other) |
| 4314 | : TestCaseDatacxx . . $ doctest/TestCaseData#() { |
| 4315 | *this =cxx . . $ doctest/detail/TestCase#`operator=`(5cffea4dc01ef505). other; |
| 4316 | } |
| 4317 | |
| 4318 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(26434) // hides a non-virtual function |
| 4319 | TestCasecxx . . $ doctest/detail/TestCase#& TestCasecxx . . $ doctest/detail/TestCase#::operatorcxx . . $ doctest/detail/TestCase#`operator=`(5cffea4dc01ef505).=(const TestCasecxx . . $ doctest/detail/TestCase#& other) { |
| 4320 | TestCaseDatacxx . . $ doctest/TestCaseData#::operator=(other); |
| 4321 | m_testcxx . . $ doctest/detail/TestCase#m_test. = other.m_testcxx . . $ doctest/detail/TestCase#m_test.; |
| 4322 | m_typecxx . . $ doctest/detail/TestCase#m_type. =cxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e). other.m_typecxx . . $ doctest/detail/TestCase#m_type.; |
| 4323 | m_template_idcxx . . $ doctest/detail/TestCase#m_template_id. = other.m_template_idcxx . . $ doctest/detail/TestCase#m_template_id.; |
| 4324 | m_full_namecxx . . $ doctest/detail/TestCase#m_full_name. =cxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e). other.m_full_namecxx . . $ doctest/detail/TestCase#m_full_name.; |
| 4325 | |
| 4326 | if(m_template_idcxx . . $ doctest/detail/TestCase#m_template_id. != -1) |
| 4327 | m_namecxx . . $ doctest/TestCaseData#m_name. = m_full_namecxx . . $ doctest/detail/TestCase#m_full_name..c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); |
| 4328 | return *this; |
| 4329 | } |
| 4330 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 4331 | |
| 4332 | TestCasecxx . . $ doctest/detail/TestCase#& TestCasecxx . . $ doctest/detail/TestCase#::operatorcxx . . $ doctest/detail/TestCase#`operator*`(4186274a3cbb01fb).*(const char* in) { |
| 4333 | m_namecxx . . $ doctest/TestCaseData#m_name. = in; |
| 4334 | // make a new name with an appended type for templated test case |
| 4335 | if(m_template_idcxx . . $ doctest/detail/TestCase#m_template_id. != -1) { |
| 4336 | m_full_namecxx . . $ doctest/detail/TestCase#m_full_name. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). Stringcxx . . $ doctest/String#(m_namecxx . . $ doctest/TestCaseData#m_name.) +cxx . . $ doctest/operator+(670c5a04c572f3f0). "<"cxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). m_typecxx . . $ doctest/detail/TestCase#m_type. +cxx . . $ doctest/operator+(670c5a04c572f3f0). ">"cxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 4337 | // redirect the name to point to the newly constructed full name |
| 4338 | m_namecxx . . $ doctest/TestCaseData#m_name. = m_full_namecxx . . $ doctest/detail/TestCase#m_full_name..c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); |
| 4339 | } |
| 4340 | return *this; |
| 4341 | } |
| 4342 | |
| 4343 | bool TestCasecxx . . $ doctest/detail/TestCase#::operatorcxx . . $ doctest/detail/TestCase#`operator<`(3d3bff0103d8bc90).<(const TestCasecxx . . $ doctest/detail/TestCase#& other) const { |
| 4344 | // this will be used only to differentiate between test cases - not relevant for sorting |
| 4345 | if(m_linecxx . . $ doctest/TestCaseData#m_line. != other.m_linecxx . . $ doctest/TestCaseData#m_line.) |
| 4346 | return m_linecxx . . $ doctest/TestCaseData#m_line. < other.m_linecxx . . $ doctest/TestCaseData#m_line.; |
| 4347 | const int name_cmp = strcmp(m_namecxx . . $ doctest/TestCaseData#m_name., other.m_namecxx . . $ doctest/TestCaseData#m_name.); |
| 4348 | if(name_cmp != 0) |
| 4349 | return name_cmp < 0; |
| 4350 | const int file_cmp = m_filecxx . . $ doctest/TestCaseData#m_file..comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(other.m_filecxx . . $ doctest/TestCaseData#m_file.); |
| 4351 | if(file_cmp != 0) |
| 4352 | return file_cmp < 0; |
| 4353 | return m_template_idcxx . . $ doctest/detail/TestCase#m_template_id. < other.m_template_idcxx . . $ doctest/detail/TestCase#m_template_id.; |
| 4354 | } |
| 4355 | |
| 4356 | // all the registered tests |
| 4357 | stdcxx . . $ std/::setcxx . . $ std/set#<TestCasecxx . . $ doctest/detail/TestCase#>& getRegisteredTestscxx . . $ doctest/detail/getRegisteredTests(319491a013046689).() { |
| 4358 | static stdcxx . . $ std/::setcxx . . $ std/set#<TestCasecxx . . $ doctest/detail/TestCase#> datacxx . . $ std/set#set(49f6e7a06ebc5aa8).; |
| 4359 | return data; |
| 4360 | } |
| 4361 | } // namespace detail |
| 4362 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 4363 | using namespace detail; |
| 4364 | // for sorting tests by file/line |
| 4365 | bool fileOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/fileOrderComparator(740b7726f3279b6d).(const TestCasecxx . . $ doctest/detail/TestCase#* lhs, const TestCasecxx . . $ doctest/detail/TestCase#* rhs) { |
| 4366 | // this is needed because MSVC gives different case for drive letters |
| 4367 | // for __FILE__ when evaluated in a header and a source file |
| 4368 | const int res = lhs->m_filecxx . . $ doctest/TestCaseData#m_file..comparecxx . . $ doctest/String#compare(5ce97c30a5880a2a).(rhs->m_filecxx . . $ doctest/TestCaseData#m_file., bool(DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`!)); |
| 4369 | if(res != 0) |
| 4370 | return res < 0; |
| 4371 | if(lhs->m_linecxx . . $ doctest/TestCaseData#m_line. != rhs->m_linecxx . . $ doctest/TestCaseData#m_line.) |
| 4372 | return lhs->m_linecxx . . $ doctest/TestCaseData#m_line. < rhs->m_linecxx . . $ doctest/TestCaseData#m_line.; |
| 4373 | return lhs->m_template_idcxx . . $ doctest/detail/TestCase#m_template_id. < rhs->m_template_idcxx . . $ doctest/detail/TestCase#m_template_id.; |
| 4374 | } |
| 4375 | |
| 4376 | // for sorting tests by suite/file/line |
| 4377 | bool suiteOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/suiteOrderComparator(740b7726f3279b6d).(const TestCasecxx . . $ doctest/detail/TestCase#* lhs, const TestCasecxx . . $ doctest/detail/TestCase#* rhs) { |
| 4378 | const int res = stdcxx . . $ std/::strcmp(lhs->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite., rhs->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.); |
| 4379 | if(res != 0) |
| 4380 | return res < 0; |
| 4381 | return fileOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/fileOrderComparator(740b7726f3279b6d).(lhs, rhs); |
| 4382 | } |
| 4383 | |
| 4384 | // for sorting tests by name/suite/file/line |
| 4385 | bool nameOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/nameOrderComparator(740b7726f3279b6d).(const TestCasecxx . . $ doctest/detail/TestCase#* lhs, const TestCasecxx . . $ doctest/detail/TestCase#* rhs) { |
| 4386 | const int res = stdcxx . . $ std/::strcmp(lhs->m_namecxx . . $ doctest/TestCaseData#m_name., rhs->m_namecxx . . $ doctest/TestCaseData#m_name.); |
| 4387 | if(res != 0) |
| 4388 | return res < 0; |
| 4389 | return suiteOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/suiteOrderComparator(740b7726f3279b6d).(lhs, rhs); |
| 4390 | } |
| 4391 | |
| 4392 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wdeprecated-declarations") |
| 4393 | void color_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/color_to_stream(ba4ce4d1fee3d52b).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& s, Colorcxx . . $ doctest/Color/::Enumcxx . . $ doctest/Color/Enum# code) { |
| 4394 | static_cast<void>(s); // for DOCTEST_CONFIG_COLORS_NONE or DOCTEST_CONFIG_COLORS_WINDOWS |
| 4395 | static_cast<void>(code); // for DOCTEST_CONFIG_COLORS_NONE |
| 4396 | #ifdef DOCTEST_CONFIG_COLORS_ANSIcxx . . $ `tests/thirdparty/doctest/doctest.h:4053:9`! |
| 4397 | if(g_no_colorscxx . . $ doctest/detail/g_no_colors. || |
| 4398 | (isatty(STDOUT_FILENOcxx . . $ `<external>/12628407106812493757/unistd.h:211:9`!) == false && getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->force_colorscxx . . $ doctest/ContextOptions#force_colors. == false)) |
| 4399 | return; |
| 4400 | |
| 4401 | auto col = ""; |
| 4402 | // clang-format off |
| 4403 | switch(code) { //!OCLINT missing break in switch statement / unnecessary default statement in covered switch statement |
| 4404 | case Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red.: col = "[0;31m"; break; |
| 4405 | case Colorcxx . . $ doctest/Color/::Greencxx . . $ doctest/Color/Green.: col = "[0;32m"; break; |
| 4406 | case Colorcxx . . $ doctest/Color/::Bluecxx . . $ doctest/Color/Blue.: col = "[0;34m"; break; |
| 4407 | case Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan.: col = "[0;36m"; break; |
| 4408 | case Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow.: col = "[0;33m"; break; |
| 4409 | case Colorcxx . . $ doctest/Color/::Greycxx . . $ doctest/Color/Grey.: col = "[1;30m"; break; |
| 4410 | case Colorcxx . . $ doctest/Color/::LightGreycxx . . $ doctest/Color/LightGrey.: col = "[0;37m"; break; |
| 4411 | case Colorcxx . . $ doctest/Color/::BrightRedcxx . . $ doctest/Color/BrightRed.: col = "[1;31m"; break; |
| 4412 | case Colorcxx . . $ doctest/Color/::BrightGreencxx . . $ doctest/Color/BrightGreen.: col = "[1;32m"; break; |
| 4413 | case Colorcxx . . $ doctest/Color/::BrightWhitecxx . . $ doctest/Color/BrightWhite.: col = "[1;37m"; break; |
| 4414 | case Colorcxx . . $ doctest/Color/::Brightcxx . . $ doctest/Color/Bright.: // invalid |
| 4415 | case Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.: |
| 4416 | case Colorcxx . . $ doctest/Color/::Whitecxx . . $ doctest/Color/White.: |
| 4417 | default: col = "[0m"; |
| 4418 | } |
| 4419 | // clang-format on |
| 4420 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\033" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). col; |
| 4421 | #endif // DOCTEST_CONFIG_COLORS_ANSI |
| 4422 | |
| 4423 | #ifdef DOCTEST_CONFIG_COLORS_WINDOWS |
| 4424 | if(g_no_colors || |
| 4425 | (_isatty(_fileno(stdout)) == false && getContextOptions()->force_colors == false)) |
| 4426 | return; |
| 4427 | |
| 4428 | static struct ConsoleHelper { |
| 4429 | HANDLE stdoutHandle; |
| 4430 | WORD origFgAttrs; |
| 4431 | WORD origBgAttrs; |
| 4432 | |
| 4433 | ConsoleHelper() { |
| 4434 | stdoutHandle = GetStdHandle(STD_OUTPUT_HANDLE); |
| 4435 | CONSOLE_SCREEN_BUFFER_INFO csbiInfo; |
| 4436 | GetConsoleScreenBufferInfo(stdoutHandle, &csbiInfo); |
| 4437 | origFgAttrs = csbiInfo.wAttributes & ~(BACKGROUND_GREEN | BACKGROUND_RED | |
| 4438 | BACKGROUND_BLUE | BACKGROUND_INTENSITY); |
| 4439 | origBgAttrs = csbiInfo.wAttributes & ~(FOREGROUND_GREEN | FOREGROUND_RED | |
| 4440 | FOREGROUND_BLUE | FOREGROUND_INTENSITY); |
| 4441 | } |
| 4442 | } ch; |
| 4443 | |
| 4444 | #define DOCTEST_SET_ATTR(x) SetConsoleTextAttribute(ch.stdoutHandle, x | ch.origBgAttrs) |
| 4445 | |
| 4446 | // clang-format off |
| 4447 | switch (code) { |
| 4448 | case Color::White: DOCTEST_SET_ATTR(FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE); break; |
| 4449 | case Color::Red: DOCTEST_SET_ATTR(FOREGROUND_RED); break; |
| 4450 | case Color::Green: DOCTEST_SET_ATTR(FOREGROUND_GREEN); break; |
| 4451 | case Color::Blue: DOCTEST_SET_ATTR(FOREGROUND_BLUE); break; |
| 4452 | case Color::Cyan: DOCTEST_SET_ATTR(FOREGROUND_BLUE | FOREGROUND_GREEN); break; |
| 4453 | case Color::Yellow: DOCTEST_SET_ATTR(FOREGROUND_RED | FOREGROUND_GREEN); break; |
| 4454 | case Color::Grey: DOCTEST_SET_ATTR(0); break; |
| 4455 | case Color::LightGrey: DOCTEST_SET_ATTR(FOREGROUND_INTENSITY); break; |
| 4456 | case Color::BrightRed: DOCTEST_SET_ATTR(FOREGROUND_INTENSITY | FOREGROUND_RED); break; |
| 4457 | case Color::BrightGreen: DOCTEST_SET_ATTR(FOREGROUND_INTENSITY | FOREGROUND_GREEN); break; |
| 4458 | case Color::BrightWhite: DOCTEST_SET_ATTR(FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE); break; |
| 4459 | case Color::None: |
| 4460 | case Color::Bright: // invalid |
| 4461 | default: DOCTEST_SET_ATTR(ch.origFgAttrs); |
| 4462 | } |
| 4463 | // clang-format on |
| 4464 | #endif // DOCTEST_CONFIG_COLORS_WINDOWS |
| 4465 | } |
| 4466 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 4467 | |
| 4468 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<const IExceptionTranslatorcxx . . $ doctest/detail/IExceptionTranslator#*>& getExceptionTranslatorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getExceptionTranslators(3b60ec591adc201b).() { |
| 4469 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#<const IExceptionTranslatorcxx . . $ doctest/detail/IExceptionTranslator#*> datacxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 4470 | return data; |
| 4471 | } |
| 4472 | |
| 4473 | Stringcxx . . $ doctest/String# translateActiveExceptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/translateActiveException(352b1a6751d00680).() { |
| 4474 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 4475 | Stringcxx . . $ doctest/String# rescxx . . $ doctest/String#String(ced63f7c635d850d).; |
| 4476 | auto& translators = getExceptionTranslatorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getExceptionTranslators(3b60ec591adc201b).(); |
| 4477 | for(auto& curr : translators) |
| 4478 | if(curr->translatecxx . . $ doctest/detail/IExceptionTranslator#translate(75b8d91aa38c0d68).(res)) |
| 4479 | return rescxx . . $ doctest/String#String(d76cbb63cd3dec44).; |
| 4480 | // clang-format off |
| 4481 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:140:9`!("-Wcatch-value") |
| 4482 | try { |
| 4483 | throw; |
| 4484 | } catch(stdcxx . . $ std/::exception& ex) { |
| 4485 | return excxx . . $ doctest/String#String(85c52e162fed56f9)..what(); |
| 4486 | } catch(stdcxx . . $ std/::stringcxx . . $ std/string#& msg) { |
| 4487 | return msgcxx . . $ doctest/String#String(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(); |
| 4488 | } catch(const char* msg) { |
| 4489 | return msgcxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 4490 | } catch(...) { |
| 4491 | return "unknown exception"cxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 4492 | } |
| 4493 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 4494 | // clang-format on |
| 4495 | #else // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 4496 | return ""; |
| 4497 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 4498 | } |
| 4499 | } // namespace |
| 4500 | |
| 4501 | namespace detailcxx . . $ doctest/detail/ { |
| 4502 | // used by the macros for registering tests |
| 4503 | int regTestcxx . . $ doctest/detail/regTest(21fc9732bccf888f).(const TestCasecxx . . $ doctest/detail/TestCase#& tc) { |
| 4504 | getRegisteredTestscxx . . $ doctest/detail/getRegisteredTests(319491a013046689).().insertcxx . . $ std/set#insert(411a10a755068dfe).(tc); |
| 4505 | return 0; |
| 4506 | } |
| 4507 | |
| 4508 | // sets the current test suite |
| 4509 | int setTestSuitecxx . . $ doctest/detail/setTestSuite(1b519aedf1ee7d2c).(const TestSuitecxx . . $ doctest/detail/TestSuite#& ts) { |
| 4510 | doctest_detail_test_suite_nscxx . . $ doctest_detail_test_suite_ns/::getCurrentTestSuitecxx . . $ doctest_detail_test_suite_ns/getCurrentTestSuite(135872ee19a66646).() =cxx . . $ doctest/detail/TestSuite#`operator=`(ca3fae2ae3c189a7). ts; |
| 4511 | return 0; |
| 4512 | } |
| 4513 | |
| 4514 | #ifdef DOCTEST_IS_DEBUGGER_ACTIVE |
| 4515 | bool isDebuggerActive() { return DOCTEST_IS_DEBUGGER_ACTIVE(); } |
| 4516 | #else // DOCTEST_IS_DEBUGGER_ACTIVE |
| 4517 | #ifdef DOCTEST_PLATFORM_LINUXcxx . . $ `tests/thirdparty/doctest/doctest.h:443:9`! |
| 4518 | class ErrnoGuardcxx . . $ doctest/detail/ErrnoGuard# { |
| 4519 | public: |
| 4520 | ErrnoGuardcxx . . $ doctest/detail/ErrnoGuard#ErrnoGuard(49f6e7a06ebc5aa8).() : m_oldErrnocxx . . $ doctest/detail/ErrnoGuard#m_oldErrno.(errnocxx . . $ `<external>/17633486526465735210/errno.h:38:10`!) {} |
| 4521 | ~cxx . . $ doctest/detail/ErrnoGuard#`~ErrnoGuard`(ced63f7c635d850d).ErrnoGuardcxx . . $ doctest/detail/ErrnoGuard#() { errnocxx . . $ `<external>/17633486526465735210/errno.h:38:10`! = m_oldErrnocxx . . $ doctest/detail/ErrnoGuard#m_oldErrno.; } |
| 4522 | private: |
| 4523 | int m_oldErrnocxx . . $ doctest/detail/ErrnoGuard#m_oldErrno.; |
| 4524 | }; |
| 4525 | // See the comments in Catch2 for the reasoning behind this implementation: |
| 4526 | // https://github.com/catchorg/Catch2/blob/v2.13.1/include/internal/catch_debugger.cpp#L79-L102 |
| 4527 | bool isDebuggerActivecxx . . $ doctest/detail/isDebuggerActive(c9857a73d68e59ba).() { |
| 4528 | ErrnoGuardcxx . . $ doctest/detail/ErrnoGuard# guardcxx . . $ doctest/detail/ErrnoGuard#ErrnoGuard(49f6e7a06ebc5aa8).; |
| 4529 | stdcxx . . $ std/::ifstreamcxx . . $ std/ifstream# incxx . . $ std/basic_ifstream#basic_ifstream(b8cd37071ce335df).("/proc/self/status"); |
| 4530 | for(stdcxx . . $ std/::stringcxx . . $ std/string# linecxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; stdcxx . . $ std/::getlinecxx . . $ std/getline(4ec722ed0b69c2ab).(in, line);) { |
| 4531 | static const int PREFIX_LEN = 11; |
| 4532 | if(line.comparecxx . . $ std/__cxx11/basic_string#compare(42b39d70d030e8aa).(0, PREFIX_LEN, "TracerPid:\t") == 0) { |
| 4533 | return line.lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).() > PREFIX_LEN && line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).PREFIX_LEN] != '0'; |
| 4534 | } |
| 4535 | } |
| 4536 | return false; |
| 4537 | } |
| 4538 | #elif defined(DOCTEST_PLATFORM_MAC) |
| 4539 | // The following function is taken directly from the following technical note: |
| 4540 | // https://developer.apple.com/library/archive/qa/qa1361/_index.html |
| 4541 | // Returns true if the current process is being debugged (either |
| 4542 | // running under the debugger or has a debugger attached post facto). |
| 4543 | bool isDebuggerActive() { |
| 4544 | int mib[4]; |
| 4545 | kinfo_proc info; |
| 4546 | size_t size; |
| 4547 | // Initialize the flags so that, if sysctl fails for some bizarre |
| 4548 | // reason, we get a predictable result. |
| 4549 | info.kp_proc.p_flag = 0; |
| 4550 | // Initialize mib, which tells sysctl the info we want, in this case |
| 4551 | // we're looking for information about a specific process ID. |
| 4552 | mib[0] = CTL_KERN; |
| 4553 | mib[1] = KERN_PROC; |
| 4554 | mib[2] = KERN_PROC_PID; |
| 4555 | mib[3] = getpid(); |
| 4556 | // Call sysctl. |
| 4557 | size = sizeof(info); |
| 4558 | if(sysctl(mib, DOCTEST_COUNTOF(mib), &info, &size, 0, 0) != 0) { |
| 4559 | std::cerr << "\nCall to sysctl failed - unable to determine if debugger is active **\n"; |
| 4560 | return false; |
| 4561 | } |
| 4562 | // We're being debugged if the P_TRACED flag is set. |
| 4563 | return ((info.kp_proc.p_flag & P_TRACED) != 0); |
| 4564 | } |
| 4565 | #elif DOCTEST_MSVC || defined(__MINGW32__) || defined(__MINGW64__) |
| 4566 | bool isDebuggerActive() { return ::IsDebuggerPresent() != 0; } |
| 4567 | #else |
| 4568 | bool isDebuggerActive() { return false; } |
| 4569 | #endif // Platform |
| 4570 | #endif // DOCTEST_IS_DEBUGGER_ACTIVE |
| 4571 | |
| 4572 | void registerExceptionTranslatorImplcxx . . $ doctest/detail/registerExceptionTranslatorImpl(9c26d37c86eaabfb).(const IExceptionTranslatorcxx . . $ doctest/detail/IExceptionTranslator#* et) { |
| 4573 | if(stdcxx . . $ std/::findcxx . . $ std/find(a92da12e15934614).(getExceptionTranslatorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getExceptionTranslators(3b60ec591adc201b).().begincxx . . $ std/vector#begin(55a6de06420d4903).(), getExceptionTranslatorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getExceptionTranslators(3b60ec591adc201b).().endcxx . . $ std/vector#end(55a6de06420d4903).(), et) == |
| 4574 | getExceptionTranslatorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getExceptionTranslators(3b60ec591adc201b).().endcxx . . $ std/vector#end(55a6de06420d4903).()) |
| 4575 | getExceptionTranslatorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getExceptionTranslators(3b60ec591adc201b).().push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(et); |
| 4576 | } |
| 4577 | |
| 4578 | DOCTEST_THREAD_LOCALcxx . . $ `tests/thirdparty/doctest/doctest_compatibility.h:5:9`! stdcxx . . $ std/::vectorcxx . . $ std/vector#<IContextScopecxx . . $ doctest/IContextScope#*> g_infoContextscxx . . $ doctest/detail/g_infoContexts.; // for logging with INFO() |
| 4579 | |
| 4580 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#::ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#ContextScopeBase(49f6e7a06ebc5aa8).() { |
| 4581 | g_infoContextscxx . . $ doctest/detail/g_infoContexts..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(this); |
| 4582 | } |
| 4583 | |
| 4584 | ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#::ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#ContextScopeBase(422fa576f11e7d47).(ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#&& other) noexcept { |
| 4585 | if (other.need_to_destroycxx . . $ doctest/detail/ContextScopeBase#need_to_destroy.) { |
| 4586 | other.destroycxx . . $ doctest/detail/ContextScopeBase#destroy(49f6e7a06ebc5aa8).(); |
| 4587 | } |
| 4588 | other.need_to_destroycxx . . $ doctest/detail/ContextScopeBase#need_to_destroy. = false; |
| 4589 | g_infoContextscxx . . $ doctest/detail/g_infoContexts..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(this); |
| 4590 | } |
| 4591 | |
| 4592 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4996) // std::uncaught_exception is deprecated in C++17 |
| 4593 | DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:140:9`!("-Wdeprecated-declarations") |
| 4594 | DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:120:9`!("-Wdeprecated-declarations") |
| 4595 | |
| 4596 | // destroy cannot be inlined into the destructor because that would mean calling stringify after |
| 4597 | // ContextScope has been destroyed (base class destructors run after derived class destructors). |
| 4598 | // Instead, ContextScope calls this method directly from its destructor. |
| 4599 | void ContextScopeBasecxx . . $ doctest/detail/ContextScopeBase#::destroycxx . . $ doctest/detail/ContextScopeBase#destroy(49f6e7a06ebc5aa8).() { |
| 4600 | #if defined(__cpp_lib_uncaught_exceptionscxx . . $ `/usr/bin/../lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/version.h:67:12`!) && __cpp_lib_uncaught_exceptionscxx . . $ `/usr/bin/../lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/version.h:67:12`! >= 201411L && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) |
| 4601 | if(stdcxx . . $ std/::uncaught_exceptions() > 0) { |
| 4602 | #else |
| 4603 | if(std::uncaught_exception()) { |
| 4604 | #endif |
| 4605 | stdcxx . . $ std/::ostringstreamcxx . . $ std/ostringstream# scxx . . $ std/__cxx11/basic_ostringstream#basic_ostringstream(49f6e7a06ebc5aa8).; |
| 4606 | this->stringifycxx . . $ doctest/IContextScope#stringify(7b1875f5045e6781).(&s); |
| 4607 | g_cscxx . . $ doctest/detail/g_cs.->stringifiedContextscxx . . $ doctest/detail/ContextState#stringifiedContexts..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(scxx . . $ doctest/String#String(85c52e162fed56f9)..strcxx . . $ std/__cxx11/basic_ostringstream#str(d33e1a6fd36255f7).().c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 4608 | } |
| 4609 | g_infoContextscxx . . $ doctest/detail/g_infoContexts..pop_backcxx . . $ std/vector#pop_back(ced63f7c635d850d).(); |
| 4610 | } |
| 4611 | |
| 4612 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 4613 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 4614 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 4615 | } // namespace detail |
| 4616 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 4617 | using namespace detail; |
| 4618 | |
| 4619 | #if !defined(DOCTEST_CONFIG_POSIX_SIGNALScxx . . $ `tests/thirdparty/doctest/doctest.h:283:9`!) && !defined(DOCTEST_CONFIG_WINDOWS_SEH) |
| 4620 | struct FatalConditionHandler |
| 4621 | { |
| 4622 | static void reset() {} |
| 4623 | static void allocateAltStackMem() {} |
| 4624 | static void freeAltStackMem() {} |
| 4625 | }; |
| 4626 | #else // DOCTEST_CONFIG_POSIX_SIGNALS || DOCTEST_CONFIG_WINDOWS_SEH |
| 4627 | |
| 4628 | void reportFatalcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reportFatal(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#&); |
| 4629 | |
| 4630 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 4631 | |
| 4632 | struct SignalDefs |
| 4633 | { |
| 4634 | DWORD id; |
| 4635 | const char* name; |
| 4636 | }; |
| 4637 | // There is no 1-1 mapping between signals and windows exceptions. |
| 4638 | // Windows can easily distinguish between SO and SigSegV, |
| 4639 | // but SigInt, SigTerm, etc are handled differently. |
| 4640 | SignalDefs signalDefs[] = { |
| 4641 | {static_cast<DWORD>(EXCEPTION_ILLEGAL_INSTRUCTION), |
| 4642 | "SIGILL - Illegal instruction signal"}, |
| 4643 | {static_cast<DWORD>(EXCEPTION_STACK_OVERFLOW), "SIGSEGV - Stack overflow"}, |
| 4644 | {static_cast<DWORD>(EXCEPTION_ACCESS_VIOLATION), |
| 4645 | "SIGSEGV - Segmentation violation signal"}, |
| 4646 | {static_cast<DWORD>(EXCEPTION_INT_DIVIDE_BY_ZERO), "Divide by zero error"}, |
| 4647 | }; |
| 4648 | |
| 4649 | struct FatalConditionHandler |
| 4650 | { |
| 4651 | static LONG CALLBACK handleException(PEXCEPTION_POINTERS ExceptionInfo) { |
| 4652 | // Multiple threads may enter this filter/handler at once. We want the error message to be printed on the |
| 4653 | // console just once no matter how many threads have crashed. |
| 4654 | DOCTEST_DECLARE_STATIC_MUTEX(mutex) |
| 4655 | static bool execute = true; |
| 4656 | { |
| 4657 | DOCTEST_LOCK_MUTEX(mutex) |
| 4658 | if(execute) { |
| 4659 | bool reported = false; |
| 4660 | for(size_t i = 0; i < DOCTEST_COUNTOF(signalDefs); ++i) { |
| 4661 | if(ExceptionInfo->ExceptionRecord->ExceptionCode == signalDefs[i].id) { |
| 4662 | reportFatal(signalDefs[i].name); |
| 4663 | reported = true; |
| 4664 | break; |
| 4665 | } |
| 4666 | } |
| 4667 | if(reported == false) |
| 4668 | reportFatal("Unhandled SEH exception caught"); |
| 4669 | if(isDebuggerActive() && !g_cs->no_breaks) |
| 4670 | DOCTEST_BREAK_INTO_DEBUGGER(); |
| 4671 | } |
| 4672 | execute = false; |
| 4673 | } |
| 4674 | std::exit(EXIT_FAILURE); |
| 4675 | } |
| 4676 | |
| 4677 | static void allocateAltStackMem() {} |
| 4678 | static void freeAltStackMem() {} |
| 4679 | |
| 4680 | FatalConditionHandler() { |
| 4681 | isSet = true; |
| 4682 | // 32k seems enough for doctest to handle stack overflow, |
| 4683 | // but the value was found experimentally, so there is no strong guarantee |
| 4684 | guaranteeSize = 32 * 1024; |
| 4685 | // Register an unhandled exception filter |
| 4686 | previousTop = SetUnhandledExceptionFilter(handleException); |
| 4687 | // Pass in guarantee size to be filled |
| 4688 | SetThreadStackGuarantee(&guaranteeSize); |
| 4689 | |
| 4690 | // On Windows uncaught exceptions from another thread, exceptions from |
| 4691 | // destructors, or calls to std::terminate are not a SEH exception |
| 4692 | |
| 4693 | // The terminal handler gets called when: |
| 4694 | // - std::terminate is called FROM THE TEST RUNNER THREAD |
| 4695 | // - an exception is thrown from a destructor FROM THE TEST RUNNER THREAD |
| 4696 | original_terminate_handler = std::get_terminate(); |
| 4697 | std::set_terminate([]() DOCTEST_NOEXCEPT { |
| 4698 | reportFatal("Terminate handler called"); |
| 4699 | if(isDebuggerActive() && !g_cs->no_breaks) |
| 4700 | DOCTEST_BREAK_INTO_DEBUGGER(); |
| 4701 | std::exit(EXIT_FAILURE); // explicitly exit - otherwise the SIGABRT handler may be called as well |
| 4702 | }); |
| 4703 | |
| 4704 | // SIGABRT is raised when: |
| 4705 | // - std::terminate is called FROM A DIFFERENT THREAD |
| 4706 | // - an exception is thrown from a destructor FROM A DIFFERENT THREAD |
| 4707 | // - an uncaught exception is thrown FROM A DIFFERENT THREAD |
| 4708 | prev_sigabrt_handler = std::signal(SIGABRT, [](int signal) DOCTEST_NOEXCEPT { |
| 4709 | if(signal == SIGABRT) { |
| 4710 | reportFatal("SIGABRT - Abort (abnormal termination) signal"); |
| 4711 | if(isDebuggerActive() && !g_cs->no_breaks) |
| 4712 | DOCTEST_BREAK_INTO_DEBUGGER(); |
| 4713 | std::exit(EXIT_FAILURE); |
| 4714 | } |
| 4715 | }); |
| 4716 | |
| 4717 | // The following settings are taken from google test, and more |
| 4718 | // specifically from UnitTest::Run() inside of gtest.cc |
| 4719 | |
| 4720 | // the user does not want to see pop-up dialogs about crashes |
| 4721 | prev_error_mode_1 = SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOALIGNMENTFAULTEXCEPT | |
| 4722 | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); |
| 4723 | // This forces the abort message to go to stderr in all circumstances. |
| 4724 | prev_error_mode_2 = _set_error_mode(_OUT_TO_STDERR); |
| 4725 | // In the debug version, Visual Studio pops up a separate dialog |
| 4726 | // offering a choice to debug the aborted program - we want to disable that. |
| 4727 | prev_abort_behavior = _set_abort_behavior(0x0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); |
| 4728 | // In debug mode, the Windows CRT can crash with an assertion over invalid |
| 4729 | // input (e.g. passing an invalid file descriptor). The default handling |
| 4730 | // for these assertions is to pop up a dialog and wait for user input. |
| 4731 | // Instead ask the CRT to dump such assertions to stderr non-interactively. |
| 4732 | prev_report_mode = _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG); |
| 4733 | prev_report_file = _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); |
| 4734 | } |
| 4735 | |
| 4736 | static void reset() { |
| 4737 | if(isSet) { |
| 4738 | // Unregister handler and restore the old guarantee |
| 4739 | SetUnhandledExceptionFilter(previousTop); |
| 4740 | SetThreadStackGuarantee(&guaranteeSize); |
| 4741 | std::set_terminate(original_terminate_handler); |
| 4742 | std::signal(SIGABRT, prev_sigabrt_handler); |
| 4743 | SetErrorMode(prev_error_mode_1); |
| 4744 | _set_error_mode(prev_error_mode_2); |
| 4745 | _set_abort_behavior(prev_abort_behavior, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); |
| 4746 | static_cast<void>(_CrtSetReportMode(_CRT_ASSERT, prev_report_mode)); |
| 4747 | static_cast<void>(_CrtSetReportFile(_CRT_ASSERT, prev_report_file)); |
| 4748 | isSet = false; |
| 4749 | } |
| 4750 | } |
| 4751 | |
| 4752 | ~FatalConditionHandler() { reset(); } |
| 4753 | |
| 4754 | private: |
| 4755 | static UINT prev_error_mode_1; |
| 4756 | static int prev_error_mode_2; |
| 4757 | static unsigned int prev_abort_behavior; |
| 4758 | static int prev_report_mode; |
| 4759 | static _HFILE prev_report_file; |
| 4760 | static void (DOCTEST_CDECL *prev_sigabrt_handler)(int); |
| 4761 | static std::terminate_handler original_terminate_handler; |
| 4762 | static bool isSet; |
| 4763 | static ULONG guaranteeSize; |
| 4764 | static LPTOP_LEVEL_EXCEPTION_FILTER previousTop; |
| 4765 | }; |
| 4766 | |
| 4767 | UINT FatalConditionHandler::prev_error_mode_1; |
| 4768 | int FatalConditionHandler::prev_error_mode_2; |
| 4769 | unsigned int FatalConditionHandler::prev_abort_behavior; |
| 4770 | int FatalConditionHandler::prev_report_mode; |
| 4771 | _HFILE FatalConditionHandler::prev_report_file; |
| 4772 | void (DOCTEST_CDECL *FatalConditionHandler::prev_sigabrt_handler)(int); |
| 4773 | std::terminate_handler FatalConditionHandler::original_terminate_handler; |
| 4774 | bool FatalConditionHandler::isSet = false; |
| 4775 | ULONG FatalConditionHandler::guaranteeSize = 0; |
| 4776 | LPTOP_LEVEL_EXCEPTION_FILTER FatalConditionHandler::previousTop = nullptr; |
| 4777 | |
| 4778 | #else // DOCTEST_PLATFORM_WINDOWS |
| 4779 | |
| 4780 | struct SignalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs# |
| 4781 | { |
| 4782 | int idcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#id.; |
| 4783 | const char* namecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#name.; |
| 4784 | }; |
| 4785 | SignalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs# signalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/signalDefs.[] = {{SIGINTcxx . . $ `<external>/11773118241360591791/signum-generic.h:48:9`!, "SIGINT - Terminal interrupt signal"}, |
| 4786 | {SIGILLcxx . . $ `<external>/11773118241360591791/signum-generic.h:49:9`!, "SIGILL - Illegal instruction signal"}, |
| 4787 | {SIGFPEcxx . . $ `<external>/11773118241360591791/signum-generic.h:51:9`!, "SIGFPE - Floating point error signal"}, |
| 4788 | {SIGSEGVcxx . . $ `<external>/11773118241360591791/signum-generic.h:52:9`!, "SIGSEGV - Segmentation violation signal"}, |
| 4789 | {SIGTERMcxx . . $ `<external>/11773118241360591791/signum-generic.h:53:9`!, "SIGTERM - Termination request signal"}, |
| 4790 | {SIGABRTcxx . . $ `<external>/11773118241360591791/signum-generic.h:50:9`!, "SIGABRT - Abort (abnormal termination) signal"}}; |
| 4791 | |
| 4792 | struct FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler# |
| 4793 | { |
| 4794 | static bool isSetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#isSet.; |
| 4795 | static struct sigaction oldSigActionscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigActions.[DOCTEST_COUNTOFcxx . . $ `tests/thirdparty/doctest/doctest.h:3234:9`!(signalDefs)]; |
| 4796 | static stack_t oldSigStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigStack.; |
| 4797 | static size_tcxx . . $ doctest/size_t# altStackSizecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackSize.; |
| 4798 | static char* altStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackMem.; |
| 4799 | |
| 4800 | static void handleSignalcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#handleSignal(d4f767463ce0a6b3).(int sig) { |
| 4801 | const char* name = "<unknown signal>"; |
| 4802 | for(stdcxx . . $ std/::size_tcxx . . $ std/size_t# i = 0; i < DOCTEST_COUNTOFcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/signalDefs.(signalDefs); ++i) { |
| 4803 | SignalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#& def = signalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/signalDefs.[i]; |
| 4804 | if(sig == def.idcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#id.) { |
| 4805 | name = def.namecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#name.; |
| 4806 | break; |
| 4807 | } |
| 4808 | } |
| 4809 | resetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#reset(49f6e7a06ebc5aa8).(); |
| 4810 | reportFatalcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reportFatal(9c546c94e5fcce4e).(namecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 4811 | raise(sig); |
| 4812 | } |
| 4813 | |
| 4814 | static void allocateAltStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#allocateAltStackMem(49f6e7a06ebc5aa8).() { |
| 4815 | altStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackMem. = new char[altStackSizecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackSize.]; |
| 4816 | } |
| 4817 | |
| 4818 | static void freeAltStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#freeAltStackMem(49f6e7a06ebc5aa8).() { |
| 4819 | delete[] altStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackMem.; |
| 4820 | } |
| 4821 | |
| 4822 | FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#FatalConditionHandler(49f6e7a06ebc5aa8).() { |
| 4823 | isSetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#isSet. = true; |
| 4824 | stack_t sigStack; |
| 4825 | sigStack.ss_sp = altStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackMem.; |
| 4826 | sigStack.ss_size = altStackSizecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackSize.; |
| 4827 | sigStack.ss_flags = 0; |
| 4828 | sigaltstack(&sigStack, &oldSigStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigStack.); |
| 4829 | struct sigaction sa = {}; |
| 4830 | sa.sa_handlercxx . . $ `<external>/16635209305659446502/sigaction.h:39:10`! = handleSignalcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#handleSignal(d4f767463ce0a6b3).; |
| 4831 | sa.sa_flags = SA_ONSTACKcxx . . $ `<external>/16635209305659446502/sigaction.h:61:10`!; |
| 4832 | for(stdcxx . . $ std/::size_tcxx . . $ std/size_t# i = 0; i < DOCTEST_COUNTOFcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/signalDefs.(signalDefs); ++i) { |
| 4833 | sigaction(signalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/signalDefs.[i].idcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#id., &sa, &oldSigActionscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigActions.[i]); |
| 4834 | } |
| 4835 | } |
| 4836 | |
| 4837 | ~cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#`~FatalConditionHandler`(ced63f7c635d850d).FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#() { resetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#reset(49f6e7a06ebc5aa8).(); } |
| 4838 | static void resetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#reset(49f6e7a06ebc5aa8).() { |
| 4839 | if(isSetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#isSet.) { |
| 4840 | // Set signals back to previous values -- hopefully nobody overwrote them in the meantime |
| 4841 | for(stdcxx . . $ std/::size_tcxx . . $ std/size_t# i = 0; i < DOCTEST_COUNTOFcxx . . $ `tests/thirdparty/doctest/doctest.h:3234:9`!(signalDefs); ++i) { |
| 4842 | sigaction(signalDefscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/signalDefs.[i].idcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/SignalDefs#id., &oldSigActionscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigActions.[i], nullptr); |
| 4843 | } |
| 4844 | // Return the old stack |
| 4845 | sigaltstack(&oldSigStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigStack., nullptr); |
| 4846 | isSetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#isSet. = false; |
| 4847 | } |
| 4848 | } |
| 4849 | }; |
| 4850 | |
| 4851 | bool FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::isSetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#isSet. = false; |
| 4852 | struct sigaction FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::oldSigActionscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigActions.[DOCTEST_COUNTOFcxx . . $ `tests/thirdparty/doctest/doctest.h:3234:9`!(signalDefs)] = {}; |
| 4853 | stack_t FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::oldSigStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#oldSigStack. = {}; |
| 4854 | size_tcxx . . $ doctest/size_t# FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::altStackSizecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackSize. = 4 * SIGSTKSZcxx . . $ `<external>/2899373183384226173/sigstksz.h:28:10`!; |
| 4855 | char* FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::altStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#altStackMem. = nullptr; |
| 4856 | |
| 4857 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 4858 | #endif // DOCTEST_CONFIG_POSIX_SIGNALS || DOCTEST_CONFIG_WINDOWS_SEH |
| 4859 | |
| 4860 | } // namespace |
| 4861 | |
| 4862 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 4863 | using namespace detail; |
| 4864 | |
| 4865 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 4866 | #define DOCTEST_OUTPUT_DEBUG_STRING(text) ::OutputDebugStringA(text) |
| 4867 | #else |
| 4868 | // TODO: integration with XCode and other IDEs |
| 4869 | #define DOCTEST_OUTPUT_DEBUG_STRINGcxx . . $ `tests/thirdparty/doctest/doctest.h:4869:9`!(text) |
| 4870 | #endif // Platform |
| 4871 | |
| 4872 | void addAssertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/addAssert(f4fa529f8f884a0b).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) { |
| 4873 | if((at & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn.) == 0) //!OCLINT bitwise operator in conditional |
| 4874 | g_cscxx . . $ doctest/detail/g_cs.->numAssertsCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsCurrentTest_atomic.++cxx . . $ doctest/detail/MultiLaneAtomic#operator++(bbf2e7a2e1bdb501).; |
| 4875 | } |
| 4876 | |
| 4877 | void addFailedAssertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/addFailedAssert(f4fa529f8f884a0b).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) { |
| 4878 | if((at & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn.) == 0) //!OCLINT bitwise operator in conditional |
| 4879 | g_cscxx . . $ doctest/detail/g_cs.->numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic.++cxx . . $ doctest/detail/MultiLaneAtomic#operator++(bbf2e7a2e1bdb501).; |
| 4880 | } |
| 4881 | |
| 4882 | #if defined(DOCTEST_CONFIG_POSIX_SIGNALScxx . . $ `tests/thirdparty/doctest/doctest.h:283:9`!) || defined(DOCTEST_CONFIG_WINDOWS_SEH) |
| 4883 | void reportFatalcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reportFatal(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& message) { |
| 4884 | g_cscxx . . $ doctest/detail/g_cs.->failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::Crashcxx . . $ doctest/TestCaseFailureReason/Crash.; |
| 4885 | |
| 4886 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/g_cs.(test_case_exception, {message.c_str(), true}); |
| 4887 | |
| 4888 | while (g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).()) { |
| 4889 | g_cscxx . . $ doctest/detail/g_cs.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..pop_backcxx . . $ std/vector#pop_back(ced63f7c635d850d).(); |
| 4890 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/ContextState#reporters_currently_used.(subcase_end, DOCTEST_EMPTYcxx . . $ `tests/thirdparty/doctest/doctest.h:347:9`!); |
| 4891 | } |
| 4892 | |
| 4893 | g_cscxx . . $ doctest/detail/g_cs.->finalizeTestCaseDatacxx . . $ doctest/detail/ContextState#finalizeTestCaseData(49f6e7a06ebc5aa8).(); |
| 4894 | |
| 4895 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/ContextState#reporters_currently_used.(test_case_end, *g_cs); |
| 4896 | |
| 4897 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/ContextState#reporters_currently_used.(test_run_end, *g_cs); |
| 4898 | } |
| 4899 | #endif // DOCTEST_CONFIG_POSIX_SIGNALS || DOCTEST_CONFIG_WINDOWS_SEH |
| 4900 | } // namespace |
| 4901 | |
| 4902 | AssertDatacxx . . $ doctest/AssertData#::AssertDatacxx . . $ doctest/AssertData#AssertData(8216d09cf610bec).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 4903 | const char* exception_type, const StringContainscxx . . $ doctest/AssertData#StringContains#& exception_string) |
| 4904 | : m_test_casecxx . . $ doctest/AssertData#m_test_case.(g_cscxx . . $ doctest/detail/g_cs.->currentTestcxx . . $ doctest/ContextOptions#currentTest.), m_atcxx . . $ doctest/AssertData#m_at.(at), m_filecxx . . $ doctest/AssertData#m_file.(file), m_linecxx . . $ doctest/AssertData#m_line.(line), m_exprcxx . . $ doctest/AssertData#m_expr.(expr), |
| 4905 | m_failedcxx . . $ doctest/AssertData#m_failed.(true), m_threwcxx . . $ doctest/AssertData#m_threw.(false), m_threw_ascxx . . $ doctest/AssertData#m_threw_as.(false), m_exception_typecxx . . $ doctest/AssertData#m_exception_type.(exception_type), |
| 4906 | m_exception_stringcxx . . $ doctest/AssertData#m_exception_string.(exception_string) { |
| 4907 | #if DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`! |
| 4908 | if (m_expr[0] == ' ') // this happens when variadic macros are disabled under MSVC |
| 4909 | ++m_expr; |
| 4910 | #endif // MSVC |
| 4911 | } |
| 4912 | |
| 4913 | namespace detailcxx . . $ doctest/detail/ { |
| 4914 | ResultBuildercxx . . $ doctest/detail/ResultBuilder#::ResultBuildercxx . . $ doctest/detail/ResultBuilder#ResultBuilder(353d81b03526b2ec).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 4915 | const char* exception_type, const Stringcxx . . $ doctest/String#& exception_string) |
| 4916 | : AssertDatacxx . . $ doctest/AssertData#AssertData(8216d09cf610bec).(at, file, line, expr, exception_type, exception_stringcxx . . $ doctest/AssertData#StringContains#StringContains(895223ef195a8629).) { } |
| 4917 | |
| 4918 | ResultBuildercxx . . $ doctest/detail/ResultBuilder#::ResultBuildercxx . . $ doctest/detail/ResultBuilder#ResultBuilder(34c78007d30b2b1e).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 4919 | const char* exception_type, const Containscxx . . $ doctest/Contains#& exception_string) |
| 4920 | : AssertDatacxx . . $ doctest/AssertData#(at, file, line, expr, exception_type, exception_stringcxx . . $ doctest/AssertData#StringContains#StringContains(6017785824d0447).) { } |
| 4921 | |
| 4922 | void ResultBuildercxx . . $ doctest/detail/ResultBuilder#::setResultcxx . . $ doctest/detail/ResultBuilder#setResult(f29171a175cb96a1).(const Resultcxx . . $ doctest/detail/Result#& res) { |
| 4923 | m_decompcxx . . $ doctest/AssertData#m_decomp. =cxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e). res.m_decompcxx . . $ doctest/detail/Result#m_decomp.; |
| 4924 | m_failedcxx . . $ doctest/AssertData#m_failed. = !res.m_passedcxx . . $ doctest/detail/Result#m_passed.; |
| 4925 | } |
| 4926 | |
| 4927 | void ResultBuildercxx . . $ doctest/detail/ResultBuilder#::translateExceptioncxx . . $ doctest/detail/ResultBuilder#translateException(49f6e7a06ebc5aa8).() { |
| 4928 | m_threwcxx . . $ doctest/AssertData#m_threw. = true; |
| 4929 | m_exceptioncxx . . $ doctest/AssertData#m_exception. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). translateActiveExceptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/translateActiveException(352b1a6751d00680).(); |
| 4930 | } |
| 4931 | |
| 4932 | bool ResultBuildercxx . . $ doctest/detail/ResultBuilder#::logcxx . . $ doctest/detail/ResultBuilder#log(c9857a73d68e59ba).() { |
| 4933 | if(m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throwscxx . . $ doctest/assertType/is_throws.) { //!OCLINT bitwise operator in conditional |
| 4934 | m_failedcxx . . $ doctest/AssertData#m_failed. = !m_threwcxx . . $ doctest/AssertData#m_threw.; |
| 4935 | } else if((m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_ascxx . . $ doctest/assertType/is_throws_as.) && (m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_withcxx . . $ doctest/assertType/is_throws_with.)) { //!OCLINT |
| 4936 | m_failedcxx . . $ doctest/AssertData#m_failed. = !m_threw_ascxx . . $ doctest/AssertData#m_threw_as. || !m_exception_stringcxx . . $ doctest/AssertData#m_exception_string..checkcxx . . $ doctest/AssertData#StringContains#check(5730efa7de1cae3f).(m_exceptioncxx . . $ doctest/AssertData#m_exception.); |
| 4937 | } else if(m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_ascxx . . $ doctest/assertType/is_throws_as.) { //!OCLINT bitwise operator in conditional |
| 4938 | m_failedcxx . . $ doctest/AssertData#m_failed. = !m_threw_ascxx . . $ doctest/AssertData#m_threw_as.; |
| 4939 | } else if(m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_withcxx . . $ doctest/assertType/is_throws_with.) { //!OCLINT bitwise operator in conditional |
| 4940 | m_failedcxx . . $ doctest/AssertData#m_failed. = !m_exception_stringcxx . . $ doctest/AssertData#m_exception_string..checkcxx . . $ doctest/AssertData#StringContains#check(5730efa7de1cae3f).(m_exceptioncxx . . $ doctest/AssertData#m_exception.); |
| 4941 | } else if(m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_nothrowcxx . . $ doctest/assertType/is_nothrow.) { //!OCLINT bitwise operator in conditional |
| 4942 | m_failedcxx . . $ doctest/AssertData#m_failed. = m_threwcxx . . $ doctest/AssertData#m_threw.; |
| 4943 | } |
| 4944 | |
| 4945 | if(m_exceptioncxx . . $ doctest/AssertData#m_exception..sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).()) |
| 4946 | m_exceptioncxx . . $ doctest/AssertData#m_exception. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). "\""cxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). m_exceptioncxx . . $ doctest/AssertData#m_exception. +cxx . . $ doctest/operator+(670c5a04c572f3f0). "\""cxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 4947 | |
| 4948 | if(is_running_in_testcxx . . $ doctest/is_running_in_test.) { |
| 4949 | addAssertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/addAssert(f4fa529f8f884a0b).(m_atcxx . . $ doctest/AssertData#m_at.); |
| 4950 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(log_assert, *this); |
| 4951 | |
| 4952 | if(m_failedcxx . . $ doctest/AssertData#m_failed.) |
| 4953 | addFailedAssertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/addFailedAssert(f4fa529f8f884a0b).(m_atcxx . . $ doctest/AssertData#m_at.); |
| 4954 | } else if(m_failedcxx . . $ doctest/AssertData#m_failed.) { |
| 4955 | failed_out_of_a_testing_contextcxx . . $ doctest/detail/failed_out_of_a_testing_context(ce9da7727ef6fad1).(*this); |
| 4956 | } |
| 4957 | |
| 4958 | return m_failedcxx . . $ doctest/AssertData#m_failed. && isDebuggerActivecxx . . $ doctest/detail/isDebuggerActive(c9857a73d68e59ba).() && !getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->no_breakscxx . . $ doctest/ContextOptions#no_breaks. && |
| 4959 | (g_cscxx . . $ doctest/detail/g_cs.->currentTestcxx . . $ doctest/ContextOptions#currentTest. == nullptr || !g_cscxx . . $ doctest/detail/g_cs.->currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_no_breakscxx . . $ doctest/TestCaseData#m_no_breaks.); // break into debugger |
| 4960 | } |
| 4961 | |
| 4962 | void ResultBuildercxx . . $ doctest/detail/ResultBuilder#::reactcxx . . $ doctest/detail/ResultBuilder#react(83f5f38750778ac8).() const { |
| 4963 | if(m_failedcxx . . $ doctest/AssertData#m_failed. && checkIfShouldThrowcxx . . $ doctest/detail/checkIfShouldThrow(5b702595a4a6849e).(m_atcxx . . $ doctest/AssertData#m_at.)) |
| 4964 | throwExceptioncxx . . $ doctest/detail/throwException(49f6e7a06ebc5aa8).(); |
| 4965 | } |
| 4966 | |
| 4967 | void failed_out_of_a_testing_contextcxx . . $ doctest/detail/failed_out_of_a_testing_context(ce9da7727ef6fad1).(const AssertDatacxx . . $ doctest/AssertData#& ad) { |
| 4968 | if(g_cscxx . . $ doctest/detail/g_cs.->ahcxx . . $ doctest/detail/ContextState#ah.) |
| 4969 | g_cscxx . . $ doctest/detail/g_cs.->ahcxx . . $ doctest/detail/ContextState#ah.(ad); |
| 4970 | else |
| 4971 | stdcxx . . $ std/::abort(); |
| 4972 | } |
| 4973 | |
| 4974 | bool decomp_assertcxx . . $ doctest/detail/decomp_assert(e1d5cd154d70ca2).(assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, const char* file, int line, const char* expr, |
| 4975 | const Resultcxx . . $ doctest/detail/Result#& result) { |
| 4976 | bool failed = !result.m_passedcxx . . $ doctest/detail/Result#m_passed.; |
| 4977 | |
| 4978 | // ################################################################################### |
| 4979 | // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT |
| 4980 | // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED |
| 4981 | // ################################################################################### |
| 4982 | DOCTEST_ASSERT_OUT_OF_TESTScxx . . $ `tests/thirdparty/doctest/doctest.h:1736:9`!(result.m_decomp); |
| 4983 | DOCTEST_ASSERT_IN_TESTScxx . . $ doctest/AssertData#m_decomp.(result.m_decomp); |
| 4984 | return !failed; |
| 4985 | } |
| 4986 | |
| 4987 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#::MessageBuildercxx . . $ doctest/detail/MessageBuilder#MessageBuilder(cc335409aab0f199).(const char* file, int line, assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# severity) { |
| 4988 | m_streamcxx . . $ doctest/detail/MessageBuilder#m_stream. = tlssPushcxx . . $ doctest/detail/tlssPush(a0ce4335f407e5ba).(); |
| 4989 | m_filecxx . . $ doctest/MessageData#m_file. = file; |
| 4990 | m_linecxx . . $ doctest/MessageData#m_line. = line; |
| 4991 | m_severitycxx . . $ doctest/MessageData#m_severity. = severity; |
| 4992 | } |
| 4993 | |
| 4994 | MessageBuildercxx . . $ doctest/detail/MessageBuilder#::~cxx . . $ doctest/detail/MessageBuilder#`~MessageBuilder`(ced63f7c635d850d).MessageBuildercxx . . $ doctest/detail/MessageBuilder#() { |
| 4995 | if (!loggedcxx . . $ doctest/detail/MessageBuilder#logged.) |
| 4996 | tlssPopcxx . . $ doctest/detail/tlssPop(352b1a6751d00680).(); |
| 4997 | } |
| 4998 | |
| 4999 | DOCTEST_DEFINE_INTERFACEcxx . . $ doctest/detail/IExceptionTranslator#`~IExceptionTranslator`(ced63f7c635d850d).(IExceptionTranslator) |
| 5000 | |
| 5001 | bool MessageBuildercxx . . $ doctest/detail/MessageBuilder#::logcxx . . $ doctest/detail/MessageBuilder#log(c9857a73d68e59ba).() { |
| 5002 | if (!loggedcxx . . $ doctest/detail/MessageBuilder#logged.) { |
| 5003 | m_stringcxx . . $ doctest/MessageData#m_string. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). tlssPopcxx . . $ doctest/detail/tlssPop(352b1a6751d00680).(); |
| 5004 | loggedcxx . . $ doctest/detail/MessageBuilder#logged. = true; |
| 5005 | } |
| 5006 | |
| 5007 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/g_cs.(log_message, *this); |
| 5008 | |
| 5009 | const bool isWarn = m_severitycxx . . $ doctest/MessageData#m_severity. & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn.; |
| 5010 | |
| 5011 | // warn is just a message in this context so we don't treat it as an assert |
| 5012 | if(!isWarn) { |
| 5013 | addAssertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/addAssert(f4fa529f8f884a0b).(m_severitycxx . . $ doctest/MessageData#m_severity.); |
| 5014 | addFailedAssertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/addFailedAssert(f4fa529f8f884a0b).(m_severitycxx . . $ doctest/MessageData#m_severity.); |
| 5015 | } |
| 5016 | |
| 5017 | return isDebuggerActivecxx . . $ doctest/detail/isDebuggerActive(c9857a73d68e59ba).() && !getContextOptionscxx . . $ doctest/getContextOptions(ece1c2b7e74489d7).()->no_breakscxx . . $ doctest/ContextOptions#no_breaks. && !isWarn && |
| 5018 | (g_cscxx . . $ doctest/detail/g_cs.->currentTestcxx . . $ doctest/ContextOptions#currentTest. == nullptr || !g_cscxx . . $ doctest/detail/g_cs.->currentTestcxx . . $ doctest/ContextOptions#currentTest.->m_no_breakscxx . . $ doctest/TestCaseData#m_no_breaks.); // break into debugger |
| 5019 | } |
| 5020 | |
| 5021 | void MessageBuildercxx . . $ doctest/detail/MessageBuilder#::reactcxx . . $ doctest/detail/MessageBuilder#react(49f6e7a06ebc5aa8).() { |
| 5022 | if(m_severitycxx . . $ doctest/MessageData#m_severity. & assertTypecxx . . $ doctest/assertType/::is_requirecxx . . $ doctest/assertType/is_require.) //!OCLINT bitwise operator in conditional |
| 5023 | throwExceptioncxx . . $ doctest/detail/throwException(49f6e7a06ebc5aa8).(); |
| 5024 | } |
| 5025 | } // namespace detail |
| 5026 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 5027 | using namespace detail; |
| 5028 | |
| 5029 | // clang-format off |
| 5030 | |
| 5031 | // ================================================================================================= |
| 5032 | // The following code has been taken verbatim from Catch2/include/internal/catch_xmlwriter.h/cpp |
| 5033 | // This is done so cherry-picking bug fixes is trivial - even the style/formatting is untouched. |
| 5034 | // ================================================================================================= |
| 5035 | |
| 5036 | class XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode# { |
| 5037 | public: |
| 5038 | enum ForWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForWhat# { ForTextNodescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForTextNodes., ForAttributescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForAttributes. }; |
| 5039 | |
| 5040 | XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#XmlEncode(5d655187037d791b).( stdcxx . . $ std/::stringcxx . . $ std/string# const& str, ForWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForWhat# forWhat = ForTextNodescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForTextNodes. ); |
| 5041 | |
| 5042 | void encodeTocxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#encodeTo(490063bd7e6d8d5d).( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os ) const; |
| 5043 | |
| 5044 | friend stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(7c56dc8bc9a9ef5f). << ( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os, XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode# const& xmlEncode ); |
| 5045 | |
| 5046 | private: |
| 5047 | stdcxx . . $ std/::stringcxx . . $ std/string# m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.; |
| 5048 | ForWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForWhat# m_forWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_forWhat.; |
| 5049 | }; |
| 5050 | |
| 5051 | class XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter# { |
| 5052 | public: |
| 5053 | |
| 5054 | class ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement# { |
| 5055 | public: |
| 5056 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#ScopedElement(4e91deac2de85cc8).( XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#* writer ); |
| 5057 | |
| 5058 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#ScopedElement(feacc70a3ba931ca).( ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#&& other ) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`!; |
| 5059 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#& operatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#`operator=`(d75de2c4557ea2df).=( ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#&& other ) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`!; |
| 5060 | |
| 5061 | ~cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#`~ScopedElement`(ced63f7c635d850d).ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#(); |
| 5062 | |
| 5063 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#& writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).( stdcxx . . $ std/::stringcxx . . $ std/string# const& text, bool indent = true ); |
| 5064 | |
| 5065 | template<typename T> |
| 5066 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#& writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, T const& attribute ) { |
| 5067 | m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.->writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).( name, attribute ); |
| 5068 | return *this; |
| 5069 | } |
| 5070 | |
| 5071 | private: |
| 5072 | mutable XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#* m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. = nullptr; |
| 5073 | }; |
| 5074 | |
| 5075 | #ifndef DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 5076 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#XmlWriter(f7f45734e6842120).( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os = stdcxx . . $ std/::coutcxx . . $ std/cout. ); |
| 5077 | #else // DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 5078 | XmlWriter( std::ostream& os ); |
| 5079 | #endif // DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 5080 | ~cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#`~XmlWriter`(ced63f7c635d850d).XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#(); |
| 5081 | |
| 5082 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#XmlWriter(f42a1d04565bbe25).( XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter# const& ) = delete; |
| 5083 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& operatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#`operator=`(1d74cd5ad6946995).=( XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter# const& ) = delete; |
| 5084 | |
| 5085 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name ); |
| 5086 | |
| 5087 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement# scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name ); |
| 5088 | |
| 5089 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5090 | |
| 5091 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, stdcxx . . $ std/::stringcxx . . $ std/string# const& attribute ); |
| 5092 | |
| 5093 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, const char* attribute ); |
| 5094 | |
| 5095 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(3b4a62c46168a9f).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, bool attribute ); |
| 5096 | |
| 5097 | template<typename T> |
| 5098 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, T const& attribute ) { |
| 5099 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# rsscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 5100 | rss <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). attribute; |
| 5101 | return writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).( name, rss.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).() ); |
| 5102 | } |
| 5103 | |
| 5104 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeText(3b4a62c46168a9f).( stdcxx . . $ std/::stringcxx . . $ std/string# const& text, bool indent = true ); |
| 5105 | |
| 5106 | //XmlWriter& writeComment( std::string const& text ); |
| 5107 | |
| 5108 | //void writeStylesheetRef( std::string const& url ); |
| 5109 | |
| 5110 | //XmlWriter& writeBlankLine(); |
| 5111 | |
| 5112 | void ensureTagClosedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ensureTagClosed(49f6e7a06ebc5aa8).(); |
| 5113 | |
| 5114 | void writeDeclarationcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeDeclaration(49f6e7a06ebc5aa8).(); |
| 5115 | |
| 5116 | private: |
| 5117 | |
| 5118 | void newlineIfNecessarycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#newlineIfNecessary(49f6e7a06ebc5aa8).(); |
| 5119 | |
| 5120 | bool m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen. = false; |
| 5121 | bool m_needsNewlinecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_needsNewline. = false; |
| 5122 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> m_tagscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tags.; |
| 5123 | stdcxx . . $ std/::stringcxx . . $ std/string# m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent.; |
| 5124 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os.; |
| 5125 | }; |
| 5126 | |
| 5127 | // ================================================================================================= |
| 5128 | // The following code has been taken verbatim from Catch2/include/internal/catch_xmlwriter.h/cpp |
| 5129 | // This is done so cherry-picking bug fixes is trivial - even the style/formatting is untouched. |
| 5130 | // ================================================================================================= |
| 5131 | |
| 5132 | using ucharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/uchar# = unsigned char; |
| 5133 | |
| 5134 | namespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/ { |
| 5135 | |
| 5136 | size_tcxx . . $ doctest/size_t# trailingBytescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/trailingBytes(c1e31e8d716f1d1f).(unsigned char c) { |
| 5137 | if ((c & 0xE0) == 0xC0) { |
| 5138 | return 2; |
| 5139 | } |
| 5140 | if ((c & 0xF0) == 0xE0) { |
| 5141 | return 3; |
| 5142 | } |
| 5143 | if ((c & 0xF8) == 0xF0) { |
| 5144 | return 4; |
| 5145 | } |
| 5146 | DOCTEST_INTERNAL_ERRORcxx . . $ `tests/thirdparty/doctest/doctest.h:3301:9`!("Invalid multibyte utf-8 start byte encountered"); |
| 5147 | } |
| 5148 | |
| 5149 | uint32_tcxx . . $ uint32_t# headerValuecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/headerValue(ded9d4c05c7b1550).(unsigned char c) { |
| 5150 | if ((c & 0xE0) == 0xC0) { |
| 5151 | return c & 0x1F; |
| 5152 | } |
| 5153 | if ((c & 0xF0) == 0xE0) { |
| 5154 | return c & 0x0F; |
| 5155 | } |
| 5156 | if ((c & 0xF8) == 0xF0) { |
| 5157 | return c & 0x07; |
| 5158 | } |
| 5159 | DOCTEST_INTERNAL_ERRORcxx . . $ std/logic_error#logic_error(85c52e162fed56f9).("Invalid multibyte utf-8 start byte encountered"); |
| 5160 | } |
| 5161 | |
| 5162 | void hexEscapeCharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/hexEscapeChar(ef4fa734ea0712bc).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os, unsigned char c) { |
| 5163 | stdcxx . . $ std/::ios_basecxx . . $ std/ios_base#::fmtflagscxx . . $ std/ios_base#fmtflags# f(os.flagscxx . . $ std/ios_base#flags(ce39a176cc3dc355).()); |
| 5164 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\\x" |
| 5165 | <<cxx . . $ std/basic_ostream#`operator<<`(cac9e8121de198e9). stdcxx . . $ std/::uppercasecxx . . $ std/uppercase(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(cac9e8121de198e9). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/`operator<<`(47f1cf32aeb3f1a2). stdcxx . . $ std/::setfillcxx . . $ std/setfill(ade351e831a1374a).('0') <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(2) |
| 5166 | <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). static_cast<int>(c); |
| 5167 | os.flagscxx . . $ std/ios_base#flags(79f645757f7c3f1c).(f); |
| 5168 | } |
| 5169 | |
| 5170 | } // anonymous namespace |
| 5171 | |
| 5172 | XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#::XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#XmlEncode(5d655187037d791b).( stdcxx . . $ std/::stringcxx . . $ std/string# const& str, ForWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForWhat# forWhat ) |
| 5173 | : m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.( str ), |
| 5174 | m_forWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_forWhat.( forWhat ) |
| 5175 | {} |
| 5176 | |
| 5177 | void XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#::encodeTocxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#encodeTo(490063bd7e6d8d5d).( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os ) const { |
| 5178 | // Apostrophe escaping not necessary if we always use " to write attributes |
| 5179 | // (see: https://www.w3.org/TR/xml/#syntax) |
| 5180 | |
| 5181 | for( stdcxx . . $ std/::size_tcxx . . $ std/size_t# idx = 0; idx < m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str..sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).(); ++ idx ) { |
| 5182 | ucharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/uchar# c = m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.[cxx . . $ std/__cxx11/basic_string#`operator[]`(dd01cf3f78ddc127).idx]; |
| 5183 | switch (c) { |
| 5184 | case '<': os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "<"; break; |
| 5185 | case '&': os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "&"; break; |
| 5186 | |
| 5187 | case '>': |
| 5188 | // See: https://www.w3.org/TR/xml/#syntax |
| 5189 | if (idx > 2 && m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.[cxx . . $ std/__cxx11/basic_string#`operator[]`(dd01cf3f78ddc127).idx - 1] == ']' && m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.[cxx . . $ std/__cxx11/basic_string#`operator[]`(dd01cf3f78ddc127).idx - 2] == ']') |
| 5190 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ">"; |
| 5191 | else |
| 5192 | os <<cxx . . $ std/`operator<<`(39fa7068252edf43). c; |
| 5193 | break; |
| 5194 | |
| 5195 | case '\"': |
| 5196 | if (m_forWhatcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_forWhat. == ForAttributescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForAttributes.) |
| 5197 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). """; |
| 5198 | else |
| 5199 | os <<cxx . . $ std/`operator<<`(39fa7068252edf43). c; |
| 5200 | break; |
| 5201 | |
| 5202 | default: |
| 5203 | // Check for control characters and invalid utf-8 |
| 5204 | |
| 5205 | // Escape control characters in standard ascii |
| 5206 | // see https://stackoverflow.com/questions/404107/why-are-control-characters-illegal-in-xml-1-0 |
| 5207 | if (c < 0x09 || (c > 0x0D && c < 0x20) || c == 0x7F) { |
| 5208 | hexEscapeCharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/hexEscapeChar(ef4fa734ea0712bc).(os, c); |
| 5209 | break; |
| 5210 | } |
| 5211 | |
| 5212 | // Plain ASCII: Write it to stream |
| 5213 | if (c < 0x7F) { |
| 5214 | os <<cxx . . $ std/`operator<<`(39fa7068252edf43). c; |
| 5215 | break; |
| 5216 | } |
| 5217 | |
| 5218 | // UTF-8 territory |
| 5219 | // Check if the encoding is valid and if it is not, hex escape bytes. |
| 5220 | // Important: We do not check the exact decoded values for validity, only the encoding format |
| 5221 | // First check that this bytes is a valid lead byte: |
| 5222 | // This means that it is not encoded as 1111 1XXX |
| 5223 | // Or as 10XX XXXX |
| 5224 | if (c < 0xC0 || |
| 5225 | c >= 0xF8) { |
| 5226 | hexEscapeCharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/hexEscapeChar(ef4fa734ea0712bc).(os, c); |
| 5227 | break; |
| 5228 | } |
| 5229 | |
| 5230 | auto encBytes = trailingBytescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/trailingBytes(c1e31e8d716f1d1f).(c); |
| 5231 | // Are there enough bytes left to avoid accessing out-of-bounds memory? |
| 5232 | if (idx + encBytes - 1 >= m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str..sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).()) { |
| 5233 | hexEscapeCharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/hexEscapeChar(ef4fa734ea0712bc).(os, c); |
| 5234 | break; |
| 5235 | } |
| 5236 | // The header is valid, check data |
| 5237 | // The next encBytes bytes must together be a valid utf-8 |
| 5238 | // This means: bitpattern 10XX XXXX and the extracted value is sane (ish) |
| 5239 | bool valid = true; |
| 5240 | uint32_tcxx . . $ uint32_t# value = headerValuecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/headerValue(ded9d4c05c7b1550).(c); |
| 5241 | for (stdcxx . . $ std/::size_tcxx . . $ std/size_t# n = 1; n < encBytes; ++n) { |
| 5242 | ucharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/uchar# nc = m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.[cxx . . $ std/__cxx11/basic_string#`operator[]`(dd01cf3f78ddc127).idx + n]; |
| 5243 | valid &= ((nc & 0xC0) == 0x80); |
| 5244 | value = (value << 6) | (nc & 0x3F); |
| 5245 | } |
| 5246 | |
| 5247 | if ( |
| 5248 | // Wrong bit pattern of following bytes |
| 5249 | (!valid) || |
| 5250 | // Overlong encodings |
| 5251 | (value < 0x80) || |
| 5252 | ( value < 0x800 && encBytes > 2) || // removed "0x80 <= value &&" because redundant |
| 5253 | (0x800 < value && value < 0x10000 && encBytes > 3) || |
| 5254 | // Encoded value out of range |
| 5255 | (value >= 0x110000) |
| 5256 | ) { |
| 5257 | hexEscapeCharcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`$anonymous_namespace_tests/src/unit.cpp`/hexEscapeChar(ef4fa734ea0712bc).(os, c); |
| 5258 | break; |
| 5259 | } |
| 5260 | |
| 5261 | // If we got here, this is in fact a valid(ish) utf-8 sequence |
| 5262 | for (stdcxx . . $ std/::size_tcxx . . $ std/size_t# n = 0; n < encBytes; ++n) { |
| 5263 | os <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). m_strcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#m_str.[cxx . . $ std/__cxx11/basic_string#`operator[]`(dd01cf3f78ddc127).idx + n]; |
| 5264 | } |
| 5265 | idx += encBytes - 1; |
| 5266 | break; |
| 5267 | } |
| 5268 | } |
| 5269 | } |
| 5270 | |
| 5271 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(7c56dc8bc9a9ef5f). << ( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os, XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode# const& xmlEncode ) { |
| 5272 | xmlEncode.encodeTocxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#encodeTo(490063bd7e6d8d5d).( os ); |
| 5273 | return os; |
| 5274 | } |
| 5275 | |
| 5276 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#ScopedElement(4e91deac2de85cc8).( XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#* writer ) |
| 5277 | : m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.( writer ) |
| 5278 | {} |
| 5279 | |
| 5280 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#ScopedElement(feacc70a3ba931ca).( ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#&& other ) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! |
| 5281 | : m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.( other.m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. ){ |
| 5282 | other.m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. = nullptr; |
| 5283 | } |
| 5284 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#::operatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#`operator=`(d75de2c4557ea2df).=( ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#&& other ) DOCTEST_NOEXCEPTcxx . . $ `tests/thirdparty/doctest/doctest.h:381:9`! { |
| 5285 | if ( m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. ) { |
| 5286 | m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.->endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5287 | } |
| 5288 | m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. = other.m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.; |
| 5289 | other.m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. = nullptr; |
| 5290 | return *this; |
| 5291 | } |
| 5292 | |
| 5293 | |
| 5294 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#::~cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#`~ScopedElement`(ced63f7c635d850d).ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#() { |
| 5295 | if( m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer. ) |
| 5296 | m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.->endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5297 | } |
| 5298 | |
| 5299 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#::writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).( stdcxx . . $ std/::stringcxx . . $ std/string# const& text, bool indent ) { |
| 5300 | m_writercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#m_writer.->writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeText(3b4a62c46168a9f).( text, indent ); |
| 5301 | return *this; |
| 5302 | } |
| 5303 | |
| 5304 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#XmlWriter(f7f45734e6842120).( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os ) : m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os.( os ) |
| 5305 | { |
| 5306 | // writeDeclaration(); // called explicitly by the reporters that use the writer class - see issue #627 |
| 5307 | } |
| 5308 | |
| 5309 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::~cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#`~XmlWriter`(ced63f7c635d850d).XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#() { |
| 5310 | while( !m_tagscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tags..emptycxx . . $ std/vector#empty(3482b152b9333168).() ) |
| 5311 | endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5312 | } |
| 5313 | |
| 5314 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name ) { |
| 5315 | ensureTagClosedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ensureTagClosed(49f6e7a06ebc5aa8).(); |
| 5316 | newlineIfNecessarycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#newlineIfNecessary(49f6e7a06ebc5aa8).(); |
| 5317 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '<' <<cxx . . $ std/`operator<<`(88df5bef833f7f83). name; |
| 5318 | m_tagscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tags..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).( name ); |
| 5319 | m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent. +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). " "; |
| 5320 | m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen. = true; |
| 5321 | return *this; |
| 5322 | } |
| 5323 | |
| 5324 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement# XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name ) { |
| 5325 | ScopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement# scopedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#ScopedElement(4e91deac2de85cc8).( this ); |
| 5326 | startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).( name ); |
| 5327 | return scopedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#ScopedElement(feacc70a3ba931ca).; |
| 5328 | } |
| 5329 | |
| 5330 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).() { |
| 5331 | newlineIfNecessarycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#newlineIfNecessary(49f6e7a06ebc5aa8).(); |
| 5332 | m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent. =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent..substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).( 0, m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent..sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).()-2 ); |
| 5333 | if( m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen. ) { |
| 5334 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "/>"; |
| 5335 | m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen. = false; |
| 5336 | } |
| 5337 | else { |
| 5338 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "</" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). m_tagscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tags..backcxx . . $ std/vector#back(6baabfa6fc7b3a8e).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ">"; |
| 5339 | } |
| 5340 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 5341 | m_tagscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tags..pop_backcxx . . $ std/vector#pop_back(ced63f7c635d850d).(); |
| 5342 | return *this; |
| 5343 | } |
| 5344 | |
| 5345 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, stdcxx . . $ std/::stringcxx . . $ std/string# const& attribute ) { |
| 5346 | if( !name.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() && !attribute.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() ) |
| 5347 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ' ' <<cxx . . $ std/`operator<<`(88df5bef833f7f83). name <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "=\"" <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(7c56dc8bc9a9ef5f). XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#( attribute, XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#::ForAttributescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForAttributes. ) <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '"'; |
| 5348 | return *this; |
| 5349 | } |
| 5350 | |
| 5351 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, const char* attribute ) { |
| 5352 | if( !name.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() && attribute && attribute[0] != '\0' ) |
| 5353 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ' ' <<cxx . . $ std/`operator<<`(88df5bef833f7f83). name <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "=\"" <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(7c56dc8bc9a9ef5f). XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#XmlEncode(5d655187037d791b).( attributecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#::ForAttributescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#ForAttributes. ) <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '"'; |
| 5354 | return *this; |
| 5355 | } |
| 5356 | |
| 5357 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(3b4a62c46168a9f).( stdcxx . . $ std/::stringcxx . . $ std/string# const& name, bool attribute ) { |
| 5358 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ' ' <<cxx . . $ std/`operator<<`(88df5bef833f7f83). name <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "=\"" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ( attribute ? "true" : "false" ) <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '"'; |
| 5359 | return *this; |
| 5360 | } |
| 5361 | |
| 5362 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#& XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeText(3b4a62c46168a9f).( stdcxx . . $ std/::stringcxx . . $ std/string# const& text, bool indent ) { |
| 5363 | if( !text.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() ){ |
| 5364 | bool tagWasOpen = m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen.; |
| 5365 | ensureTagClosedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ensureTagClosed(49f6e7a06ebc5aa8).(); |
| 5366 | if( tagWasOpen && indent ) |
| 5367 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). m_indentcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_indent.; |
| 5368 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(7c56dc8bc9a9ef5f). XmlEncodecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlEncode#XmlEncode(5d655187037d791b).( text ); |
| 5369 | m_needsNewlinecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_needsNewline. = true; |
| 5370 | } |
| 5371 | return *this; |
| 5372 | } |
| 5373 | |
| 5374 | //XmlWriter& XmlWriter::writeComment( std::string const& text ) { |
| 5375 | // ensureTagClosed(); |
| 5376 | // m_os << m_indent << "<!--" << text << "-->"; |
| 5377 | // m_needsNewline = true; |
| 5378 | // return *this; |
| 5379 | //} |
| 5380 | |
| 5381 | //void XmlWriter::writeStylesheetRef( std::string const& url ) { |
| 5382 | // m_os << "<?xml-stylesheet type=\"text/xsl\" href=\"" << url << "\"?>\n"; |
| 5383 | //} |
| 5384 | |
| 5385 | //XmlWriter& XmlWriter::writeBlankLine() { |
| 5386 | // ensureTagClosed(); |
| 5387 | // m_os << '\n'; |
| 5388 | // return *this; |
| 5389 | //} |
| 5390 | |
| 5391 | void XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::ensureTagClosedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ensureTagClosed(49f6e7a06ebc5aa8).() { |
| 5392 | if( m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen. ) { |
| 5393 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ">" <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 5394 | m_tagIsOpencxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_tagIsOpen. = false; |
| 5395 | } |
| 5396 | } |
| 5397 | |
| 5398 | void XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::writeDeclarationcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeDeclaration(49f6e7a06ebc5aa8).() { |
| 5399 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; |
| 5400 | } |
| 5401 | |
| 5402 | void XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#::newlineIfNecessarycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#newlineIfNecessary(49f6e7a06ebc5aa8).() { |
| 5403 | if( m_needsNewlinecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_needsNewline. ) { |
| 5404 | m_oscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_os. <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 5405 | m_needsNewlinecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#m_needsNewline. = false; |
| 5406 | } |
| 5407 | } |
| 5408 | |
| 5409 | // ================================================================================================= |
| 5410 | // End of copy-pasted code from Catch |
| 5411 | // ================================================================================================= |
| 5412 | |
| 5413 | // clang-format on |
| 5414 | |
| 5415 | struct XmlReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter# : public IReportercxx . . $ doctest/IReporter# |
| 5416 | { |
| 5417 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter# xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml.; |
| 5418 | DOCTEST_DECLARE_MUTEXcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#mutex.(mutex) |
| 5419 | |
| 5420 | // caching pointers/references to objects of these types - safe to do |
| 5421 | const ContextOptionscxx . . $ doctest/ContextOptions#& optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt.; |
| 5422 | const TestCaseDatacxx . . $ doctest/TestCaseData#* tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc. = nullptr; |
| 5423 | |
| 5424 | XmlReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#XmlReporter(f5e9b9c5e836c04a).(const ContextOptionscxx . . $ doctest/ContextOptions#& co) |
| 5425 | : xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml.(*co.coutcxx . . $ doctest/ContextOptions#cout.) |
| 5426 | , optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt.(co) {} |
| 5427 | |
| 5428 | void log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#log_contexts(49f6e7a06ebc5aa8).() { |
| 5429 | int num_contexts = get_num_active_contextscxx . . $ doctest/IReporter#get_num_active_contexts(b126dc7c1de90089).(); |
| 5430 | if(num_contexts) { |
| 5431 | auto contexts = get_active_contextscxx . . $ doctest/IReporter#get_active_contexts(586ddb2bcccf74b2).(); |
| 5432 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 5433 | for(int i = 0; i < num_contexts; ++i) { |
| 5434 | contexts[i]->stringifycxx . . $ doctest/IContextScope#stringify(7b1875f5045e6781).(&ss); |
| 5435 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Info"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(ss.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).()); |
| 5436 | ss.strcxx . . $ std/__cxx11/basic_stringstream#str(f82a3577bf86cf38).(""cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 5437 | } |
| 5438 | } |
| 5439 | } |
| 5440 | |
| 5441 | unsigned linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#line(560347b7e9428769).(unsigned l) const { return optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..no_line_numberscxx . . $ doctest/ContextOptions#no_line_numbers. ? 0 : l; } |
| 5442 | |
| 5443 | void test_case_start_implcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_start_impl(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#& in) { |
| 5444 | bool open_ts_tag = false; |
| 5445 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc. != nullptr) { // we have already opened a test suite |
| 5446 | if(stdcxx . . $ std/::strcmp(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc.->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite., in.m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.) != 0) { |
| 5447 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5448 | open_ts_tag = true; |
| 5449 | } |
| 5450 | } |
| 5451 | else { |
| 5452 | open_ts_tag = true; // first test case ==> first test suite |
| 5453 | } |
| 5454 | |
| 5455 | if(open_ts_tag) { |
| 5456 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("TestSuite"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 5457 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.); |
| 5458 | } |
| 5459 | |
| 5460 | tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc. = ∈ |
| 5461 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("TestCase"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5462 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.m_namecxx . . $ doctest/TestCaseData#m_name.) |
| 5463 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("filename"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(in.m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).())) |
| 5464 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("line"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#line(560347b7e9428769).(in.m_linecxx . . $ doctest/TestCaseData#m_line.)) |
| 5465 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("description"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.m_descriptioncxx . . $ doctest/TestCaseData#m_description.); |
| 5466 | |
| 5467 | if(Approxcxx . . $ doctest/Approx#Approx(ba8836b59fb42830).(in.m_timeoutcxx . . $ doctest/TestCaseData#m_timeout.) !=cxx . . $ doctest/`operator!=`(9af8b5d848f4c114). 0) |
| 5468 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("timeout"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.m_timeoutcxx . . $ doctest/TestCaseData#m_timeout.); |
| 5469 | if(in.m_may_failcxx . . $ doctest/TestCaseData#m_may_fail.) |
| 5470 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(3b4a62c46168a9f).("may_fail"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., true); |
| 5471 | if(in.m_should_failcxx . . $ doctest/TestCaseData#m_should_fail.) |
| 5472 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(3b4a62c46168a9f).("should_fail"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., true); |
| 5473 | } |
| 5474 | |
| 5475 | // ========================================================================================= |
| 5476 | // WHAT FOLLOWS ARE OVERRIDES OF THE VIRTUAL METHODS OF THE REPORTER INTERFACE |
| 5477 | // ========================================================================================= |
| 5478 | |
| 5479 | void report_querycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#report_query(4c411912a5f64970).(const QueryDatacxx . . $ doctest/QueryData#& in) override { |
| 5480 | test_run_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_run_start(49f6e7a06ebc5aa8).(); |
| 5481 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..list_reporterscxx . . $ doctest/ContextOptions#list_reporters.) { |
| 5482 | for(auto& curr : getListenerscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getListeners(be1c6a749067b56).()) |
| 5483 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Listener"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5484 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("priority"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., curr.first.first) |
| 5485 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., curr.first.second); |
| 5486 | for(auto& curr : getReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getReporters(be1c6a749067b56).()) |
| 5487 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Reporter"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5488 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("priority"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., curr.first.first) |
| 5489 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., curr.first.second); |
| 5490 | } else if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..countcxx . . $ doctest/ContextOptions#count. || optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..list_test_casescxx . . $ doctest/ContextOptions#list_test_cases.) { |
| 5491 | for(unsigned i = 0; i < in.num_datacxx . . $ doctest/QueryData#num_data.; ++i) { |
| 5492 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("TestCase"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.datacxx . . $ doctest/QueryData#data.[i]->m_namecxx . . $ doctest/TestCaseData#m_name.) |
| 5493 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("testsuite"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.datacxx . . $ doctest/QueryData#data.[i]->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.) |
| 5494 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("filename"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(in.datacxx . . $ doctest/QueryData#data.[i]->m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).())) |
| 5495 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("line"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#line(560347b7e9428769).(in.datacxx . . $ doctest/QueryData#data.[i]->m_linecxx . . $ doctest/TestCaseData#m_line.)) |
| 5496 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("skipped"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.datacxx . . $ doctest/QueryData#data.[i]->m_skipcxx . . $ doctest/TestCaseData#m_skip.); |
| 5497 | } |
| 5498 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("OverallResultsTestCases"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5499 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("unskipped"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.run_statscxx . . $ doctest/QueryData#run_stats.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.); |
| 5500 | } else if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites.) { |
| 5501 | for(unsigned i = 0; i < in.num_datacxx . . $ doctest/QueryData#num_data.; ++i) |
| 5502 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("TestSuite"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.datacxx . . $ doctest/QueryData#data.[i]->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.); |
| 5503 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("OverallResultsTestCases"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5504 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("unskipped"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.run_statscxx . . $ doctest/QueryData#run_stats.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.); |
| 5505 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("OverallResultsTestSuites"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5506 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("unskipped"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.run_statscxx . . $ doctest/QueryData#run_stats.->numTestSuitesPassingFilterscxx . . $ doctest/TestRunStats#numTestSuitesPassingFilters.); |
| 5507 | } |
| 5508 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5509 | } |
| 5510 | |
| 5511 | void test_run_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_run_start(49f6e7a06ebc5aa8).() override { |
| 5512 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeDeclarationcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeDeclaration(49f6e7a06ebc5aa8).(); |
| 5513 | |
| 5514 | // remove .exe extension - mainly to have the same output on UNIX and Windows |
| 5515 | stdcxx . . $ std/::stringcxx . . $ std/string# binary_name = skipPathFromFilenamecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..binary_namecxx . . $ doctest/ContextOptions#binary_name..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5516 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 5517 | if(binary_name.rfind(".exe") != std::string::npos) |
| 5518 | binary_name = binary_name.substr(0, binary_name.length() - 4); |
| 5519 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 5520 | |
| 5521 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("doctest"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).("binary"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., binary_name); |
| 5522 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..no_versioncxx . . $ doctest/ContextOptions#no_version. == false) |
| 5523 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("version"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., DOCTEST_VERSION_STRcxx . . $ `tests/thirdparty/doctest/doctest.h:57:9`!); |
| 5524 | |
| 5525 | // only the consequential ones (TODO: filters) |
| 5526 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Options"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5527 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("order_by"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..order_bycxx . . $ doctest/ContextOptions#order_by..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()) |
| 5528 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("rand_seed"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..rand_seedcxx . . $ doctest/ContextOptions#rand_seed.) |
| 5529 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("first"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..firstcxx . . $ doctest/ContextOptions#first.) |
| 5530 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("last"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..lastcxx . . $ doctest/ContextOptions#last.) |
| 5531 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("abort_after"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..abort_aftercxx . . $ doctest/ContextOptions#abort_after.) |
| 5532 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("subcase_filter_levels"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..subcase_filter_levelscxx . . $ doctest/ContextOptions#subcase_filter_levels.) |
| 5533 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("case_sensitive"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.) |
| 5534 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("no_throw"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..no_throwcxx . . $ doctest/ContextOptions#no_throw.) |
| 5535 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("no_skip"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..no_skipcxx . . $ doctest/ContextOptions#no_skip.); |
| 5536 | } |
| 5537 | |
| 5538 | void test_run_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_run_end(fd0a0441d5c4156).(const TestRunStatscxx . . $ doctest/TestRunStats#& p) override { |
| 5539 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc.) // the TestSuite tag - only if there has been at least 1 test case |
| 5540 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5541 | |
| 5542 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("OverallResultsAsserts"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5543 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("successes"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., p.numAssertscxx . . $ doctest/TestRunStats#numAsserts. - p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed.) |
| 5544 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("failures"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed.); |
| 5545 | |
| 5546 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("OverallResultsTestCases"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5547 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("successes"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 5548 | p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. - p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed.) |
| 5549 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("failures"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed.); |
| 5550 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..no_skipped_summarycxx . . $ doctest/ContextOptions#no_skipped_summary. == false) |
| 5551 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("skipped"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., p.numTestCasescxx . . $ doctest/TestRunStats#numTestCases. - p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.); |
| 5552 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5553 | |
| 5554 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5555 | } |
| 5556 | |
| 5557 | void test_case_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_start(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#& in) override { |
| 5558 | test_case_start_implcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_start_impl(e487234ff15ce620).(in); |
| 5559 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..ensureTagClosedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ensureTagClosed(49f6e7a06ebc5aa8).(); |
| 5560 | } |
| 5561 | |
| 5562 | void test_case_reentercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_reenter(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) override {} |
| 5563 | |
| 5564 | void test_case_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_end(6ed55a504c9d530).(const CurrentTestCaseStatscxx . . $ doctest/CurrentTestCaseStats#& st) override { |
| 5565 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("OverallResultsAsserts"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5566 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("successes"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 5567 | st.numAssertsCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsCurrentTest. - st.numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest.) |
| 5568 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("failures"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., st.numAssertsFailedCurrentTestcxx . . $ doctest/CurrentTestCaseStats#numAssertsFailedCurrentTest.) |
| 5569 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(3b4a62c46168a9f).("test_case_success"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., st.testCaseSuccesscxx . . $ doctest/CurrentTestCaseStats#testCaseSuccess.); |
| 5570 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..durationcxx . . $ doctest/ContextOptions#duration.) |
| 5571 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("duration"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., st.secondscxx . . $ doctest/CurrentTestCaseStats#seconds.); |
| 5572 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc.->m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures.) |
| 5573 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("expected_failures"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#tc.->m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures.); |
| 5574 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5575 | |
| 5576 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5577 | } |
| 5578 | |
| 5579 | void test_case_exceptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_exception(ea977ac1bb71548f).(const TestCaseExceptioncxx . . $ doctest/TestCaseException#& e) override { |
| 5580 | DOCTEST_LOCK_MUTEXcxx . . $ std/mutex#(mutex) |
| 5581 | |
| 5582 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Exception"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5583 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("crash"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., e.is_crashcxx . . $ doctest/TestCaseException#is_crash.) |
| 5584 | .writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(ecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..error_stringcxx . . $ doctest/TestCaseException#error_string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5585 | } |
| 5586 | |
| 5587 | void subcase_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#subcase_start(2c57673d4de91813).(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& in) override { |
| 5588 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("SubCase"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5589 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., in.m_namecxx . . $ doctest/SubcaseSignature#m_name.) |
| 5590 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("filename"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(in.m_filecxx . . $ doctest/SubcaseSignature#m_file.)) |
| 5591 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("line"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#line(560347b7e9428769).(in.m_linecxx . . $ doctest/SubcaseSignature#m_line.)); |
| 5592 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..ensureTagClosedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ensureTagClosed(49f6e7a06ebc5aa8).(); |
| 5593 | } |
| 5594 | |
| 5595 | void subcase_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#subcase_end(49f6e7a06ebc5aa8).() override { xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); } |
| 5596 | |
| 5597 | void log_assertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#log_assert(ce9da7727ef6fad1).(const AssertDatacxx . . $ doctest/AssertData#& rb) override { |
| 5598 | if(!rb.m_failedcxx . . $ doctest/AssertData#m_failed. && !optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..successcxx . . $ doctest/ContextOptions#success.) |
| 5599 | return; |
| 5600 | |
| 5601 | DOCTEST_LOCK_MUTEXcxx . . $ `tests/thirdparty/doctest/doctest.h:3175:9`!(mutex) |
| 5602 | |
| 5603 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("Expression"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5604 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(3b4a62c46168a9f).("success"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., !rb.m_failedcxx . . $ doctest/AssertData#m_failed.) |
| 5605 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("type"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(rb.m_atcxx . . $ doctest/AssertData#m_at.)) |
| 5606 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("filename"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(rb.m_filecxx . . $ doctest/AssertData#m_file.)) |
| 5607 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("line"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#line(560347b7e9428769).(rb.m_linecxx . . $ doctest/AssertData#m_line.)); |
| 5608 | |
| 5609 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Original"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(rbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_exprcxx . . $ doctest/AssertData#m_expr.); |
| 5610 | |
| 5611 | if(rb.m_threwcxx . . $ doctest/AssertData#m_threw.) |
| 5612 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Exception"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(rbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_exceptioncxx . . $ doctest/AssertData#m_exception..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5613 | |
| 5614 | if(rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_ascxx . . $ doctest/assertType/is_throws_as.) |
| 5615 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("ExpectedException"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(rbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_exception_typecxx . . $ doctest/AssertData#m_exception_type.); |
| 5616 | if(rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_withcxx . . $ doctest/assertType/is_throws_with.) |
| 5617 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("ExpectedExceptionString"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(rbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_exception_stringcxx . . $ doctest/AssertData#m_exception_string..c_strcxx . . $ doctest/AssertData#StringContains#c_str(a9f41ea0e82d88cf).()); |
| 5618 | if((rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_normalcxx . . $ doctest/assertType/is_normal.) && !rb.m_threwcxx . . $ doctest/AssertData#m_threw.) |
| 5619 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Expanded"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(rbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_decompcxx . . $ doctest/AssertData#m_decomp..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5620 | |
| 5621 | log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#log_contexts(49f6e7a06ebc5aa8).(); |
| 5622 | |
| 5623 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5624 | } |
| 5625 | |
| 5626 | void log_messagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#log_message(e102a1222277320f).(const MessageDatacxx . . $ doctest/MessageData#& mb) override { |
| 5627 | DOCTEST_LOCK_MUTEXcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#mutex.(mutex) |
| 5628 | |
| 5629 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("Message"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5630 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("type"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., failureStringcxx . . $ doctest/failureString(90cddebe9d4cd0df).(mb.m_severitycxx . . $ doctest/MessageData#m_severity.)) |
| 5631 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("filename"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(mb.m_filecxx . . $ doctest/MessageData#m_file.)) |
| 5632 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("line"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#line(560347b7e9428769).(mb.m_linecxx . . $ doctest/MessageData#m_line.)); |
| 5633 | |
| 5634 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("Text"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(mbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_stringcxx . . $ doctest/MessageData#m_string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5635 | |
| 5636 | log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#log_contexts(49f6e7a06ebc5aa8).(); |
| 5637 | |
| 5638 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5639 | } |
| 5640 | |
| 5641 | void test_case_skippedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_skipped(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#& in) override { |
| 5642 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#opt..no_skipped_summarycxx . . $ doctest/ContextOptions#no_skipped_summary. == false) { |
| 5643 | test_case_start_implcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#test_case_start_impl(e487234ff15ce620).(in); |
| 5644 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("skipped"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "true"); |
| 5645 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5646 | } |
| 5647 | } |
| 5648 | }; |
| 5649 | |
| 5650 | DOCTEST_REGISTER_REPORTERcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/DOCTEST_ANON_REPORTER_5.("xml", 0, XmlReporter); |
| 5651 | |
| 5652 | void fulltext_log_assert_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/fulltext_log_assert_to_stream(1b2f260aa5b73bee).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& s, const AssertDatacxx . . $ doctest/AssertData#& rb) { |
| 5653 | if((rb.m_atcxx . . $ doctest/AssertData#m_at. & (assertTypecxx . . $ doctest/assertType/::is_throws_ascxx . . $ doctest/assertType/is_throws_as. | assertTypecxx . . $ doctest/assertType/::is_throws_withcxx . . $ doctest/assertType/is_throws_with.)) == |
| 5654 | 0) //!OCLINT bitwise operator in conditional |
| 5655 | s <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(rb.m_atcxx . . $ doctest/AssertData#m_at.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "( " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exprcxx . . $ doctest/AssertData#m_expr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ) " |
| 5656 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 5657 | |
| 5658 | if(rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throwscxx . . $ doctest/assertType/is_throws.) { //!OCLINT bitwise operator in conditional |
| 5659 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (rb.m_threwcxx . . $ doctest/AssertData#m_threw. ? "threw as expected!" : "did NOT throw at all!") <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 5660 | } else if((rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_ascxx . . $ doctest/assertType/is_throws_as.) && |
| 5661 | (rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_throws_withcxx . . $ doctest/assertType/is_throws_with.)) { //!OCLINT |
| 5662 | s <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(rb.m_atcxx . . $ doctest/AssertData#m_at.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "( " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exprcxx . . $ doctest/AssertData#m_expr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", \"" |
| 5663 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exception_stringcxx . . $ doctest/AssertData#m_exception_string..c_strcxx . . $ doctest/AssertData#StringContains#c_str(a9f41ea0e82d88cf).() |
| 5664 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\", " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exception_typecxx . . $ doctest/AssertData#m_exception_type. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ) " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 5665 | if(rb.m_threwcxx . . $ doctest/AssertData#m_threw.) { |
| 5666 | if(!rb.m_failedcxx . . $ doctest/AssertData#m_failed.) { |
| 5667 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "threw as expected!\n"; |
| 5668 | } else { |
| 5669 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "threw a DIFFERENT exception! (contents: " <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). rb.m_exceptioncxx . . $ doctest/AssertData#m_exception. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ")\n"; |
| 5670 | } |
| 5671 | } else { |
| 5672 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "did NOT throw at all!\n"; |
| 5673 | } |
| 5674 | } else if(rb.m_atcxx . . $ doctest/AssertData#m_at. & |
| 5675 | assertTypecxx . . $ doctest/assertType/::is_throws_ascxx . . $ doctest/assertType/is_throws_as.) { //!OCLINT bitwise operator in conditional |
| 5676 | s <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(rb.m_atcxx . . $ doctest/AssertData#m_at.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "( " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exprcxx . . $ doctest/AssertData#m_expr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", " |
| 5677 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exception_typecxx . . $ doctest/AssertData#m_exception_type. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ) " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 5678 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (rb.m_threwcxx . . $ doctest/AssertData#m_threw. ? (rb.m_threw_ascxx . . $ doctest/AssertData#m_threw_as. ? "threw as expected!" : |
| 5679 | "threw a DIFFERENT exception: ") : |
| 5680 | "did NOT throw at all!") |
| 5681 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). rb.m_exceptioncxx . . $ doctest/AssertData#m_exception. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 5682 | } else if(rb.m_atcxx . . $ doctest/AssertData#m_at. & |
| 5683 | assertTypecxx . . $ doctest/assertType/::is_throws_withcxx . . $ doctest/assertType/is_throws_with.) { //!OCLINT bitwise operator in conditional |
| 5684 | s <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(rb.m_atcxx . . $ doctest/AssertData#m_at.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "( " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exprcxx . . $ doctest/AssertData#m_expr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", \"" |
| 5685 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). rb.m_exception_stringcxx . . $ doctest/AssertData#m_exception_string..c_strcxx . . $ doctest/AssertData#StringContains#c_str(a9f41ea0e82d88cf).() |
| 5686 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\" ) " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 5687 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (rb.m_threwcxx . . $ doctest/AssertData#m_threw. ? (!rb.m_failedcxx . . $ doctest/AssertData#m_failed. ? "threw as expected!" : |
| 5688 | "threw a DIFFERENT exception: ") : |
| 5689 | "did NOT throw at all!") |
| 5690 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). rb.m_exceptioncxx . . $ doctest/AssertData#m_exception. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 5691 | } else if(rb.m_atcxx . . $ doctest/AssertData#m_at. & assertTypecxx . . $ doctest/assertType/::is_nothrowcxx . . $ doctest/assertType/is_nothrow.) { //!OCLINT bitwise operator in conditional |
| 5692 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (rb.m_threwcxx . . $ doctest/AssertData#m_threw. ? "THREW exception: " : "didn't throw!") <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. |
| 5693 | <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). rb.m_exceptioncxx . . $ doctest/AssertData#m_exception. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 5694 | } else { |
| 5695 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (rb.m_threwcxx . . $ doctest/AssertData#m_threw. ? "THREW exception: " : |
| 5696 | (!rb.m_failedcxx . . $ doctest/AssertData#m_failed. ? "is correct!\n" : "is NOT correct!\n")); |
| 5697 | if(rb.m_threwcxx . . $ doctest/AssertData#m_threw.) |
| 5698 | s <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). rb.m_exceptioncxx . . $ doctest/AssertData#m_exception. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 5699 | else |
| 5700 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " values: " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). assertStringcxx . . $ doctest/assertString(90cddebe9d4cd0df).(rb.m_atcxx . . $ doctest/AssertData#m_at.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "( " <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). rb.m_decompcxx . . $ doctest/AssertData#m_decomp. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " )\n"; |
| 5701 | } |
| 5702 | } |
| 5703 | |
| 5704 | // TODO: |
| 5705 | // - log_message() |
| 5706 | // - respond to queries |
| 5707 | // - honor remaining options |
| 5708 | // - more attributes in tags |
| 5709 | struct JUnitReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter# : public IReportercxx . . $ doctest/IReporter# |
| 5710 | { |
| 5711 | XmlWritercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter# xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml.; |
| 5712 | DOCTEST_DECLARE_MUTEXcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#mutex.(mutex) |
| 5713 | Timercxx . . $ doctest/detail/Timer# timercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#timer.; |
| 5714 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<Stringcxx . . $ doctest/String#> deepestSubcaseStackNamescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#deepestSubcaseStackNames.; |
| 5715 | |
| 5716 | struct JUnitTestCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData# |
| 5717 | { |
| 5718 | static stdcxx . . $ std/::stringcxx . . $ std/string# getCurrentTimestampcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#getCurrentTimestamp(efd28698952f529a).() { |
| 5719 | // Beware, this is not reentrant because of backward compatibility issues |
| 5720 | // Also, UTC only, again because of backward compatibility (%z is C++11) |
| 5721 | time_tcxx . . $ time_t# rawtime; |
| 5722 | stdcxx . . $ std/::timecxx . . $ std/time(a7cd306b2d326b09).(&rawtime); |
| 5723 | auto const timeStampSize = sizeof("2017-01-16T17:06:45Z"); |
| 5724 | |
| 5725 | stdcxx . . $ std/::tmcxx . . $ std/tm# timeInfo; |
| 5726 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 5727 | gmtime_s(&timeInfo, &rawtime); |
| 5728 | #else // DOCTEST_PLATFORM_WINDOWS |
| 5729 | gmtime_r(&rawtime, &timeInfo); |
| 5730 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 5731 | |
| 5732 | char timeStamp[timeStampSize]; |
| 5733 | const char* const fmt = "%Y-%m-%dT%H:%M:%SZ"; |
| 5734 | |
| 5735 | stdcxx . . $ std/::strftimecxx . . $ std/strftime(689617e6f2fd1a9a).(timeStamp, timeStampSize, fmt, &timeInfo); |
| 5736 | return stdcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).::stringcxx . . $ std/string#(timeStamp); |
| 5737 | } |
| 5738 | |
| 5739 | struct JUnitTestMessagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage# |
| 5740 | { |
| 5741 | JUnitTestMessagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#JUnitTestMessage(9c65d82330563d7e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& _message, const stdcxx . . $ std/::stringcxx . . $ std/string#& _type, const stdcxx . . $ std/::stringcxx . . $ std/string#& _details) |
| 5742 | : messagecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(_message), typecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#type.(_type), detailscxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(_details) {} |
| 5743 | |
| 5744 | JUnitTestMessagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#JUnitTestMessage(c3ca1c130ce09c52).(const stdcxx . . $ std/::stringcxx . . $ std/string#& _message, const stdcxx . . $ std/::stringcxx . . $ std/string#& _details) |
| 5745 | : messagecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(_message), typecxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).(), detailscxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(_details) {} |
| 5746 | |
| 5747 | stdcxx . . $ std/::stringcxx . . $ std/string# messagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#message., typecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#type., detailscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#details.; |
| 5748 | }; |
| 5749 | |
| 5750 | struct JUnitTestCasecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase# |
| 5751 | { |
| 5752 | JUnitTestCasecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#JUnitTestCase(c3ca1c130ce09c52).(const stdcxx . . $ std/::stringcxx . . $ std/string#& _classname, const stdcxx . . $ std/::stringcxx . . $ std/string#& _name) |
| 5753 | : classnamecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(_classname), namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(_name), timecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#time.(0), failurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#failures.() {} |
| 5754 | |
| 5755 | stdcxx . . $ std/::stringcxx . . $ std/string# classnamecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#classname., namecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#name.; |
| 5756 | double timecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#time.; |
| 5757 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<JUnitTestMessagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#> failurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#failures., errorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#errors.; |
| 5758 | }; |
| 5759 | |
| 5760 | void addcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#add(c3ca1c130ce09c52).(const stdcxx . . $ std/::stringcxx . . $ std/string#& classname, const stdcxx . . $ std/::stringcxx . . $ std/string#& name) { |
| 5761 | testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases..emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(classname, name); |
| 5762 | } |
| 5763 | |
| 5764 | void appendSubcaseNamesToLastTestcasecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#appendSubcaseNamesToLastTestcase(7906a2abc7779835).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<Stringcxx . . $ doctest/String#> nameStack) { |
| 5765 | for(auto& curr: nameStack) |
| 5766 | if(curr.sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).()) |
| 5767 | testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases..backcxx . . $ std/vector#back(6baabfa6fc7b3a8e).().namecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#name. +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). stdcxx . . $ std/::stringcxx . . $ std/string#("/") +cxx . . $ std/operator+(900ec9581c410ad9). curr.c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); |
| 5768 | } |
| 5769 | |
| 5770 | void addTimecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addTime(ba8836b59fb42830).(double time) { |
| 5771 | if(time < 1e-4) |
| 5772 | time = 0; |
| 5773 | testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases..backcxx . . $ std/vector#back(6baabfa6fc7b3a8e).().timecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#time. = time; |
| 5774 | totalSecondscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalSeconds. += time; |
| 5775 | } |
| 5776 | |
| 5777 | void addFailurecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addFailure(9c65d82330563d7e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& message, const stdcxx . . $ std/::stringcxx . . $ std/string#& type, const stdcxx . . $ std/::stringcxx . . $ std/string#& details) { |
| 5778 | testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases..backcxx . . $ std/vector#back(6baabfa6fc7b3a8e).().failurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#failures..emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(message, type, details); |
| 5779 | ++totalFailurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalFailures.; |
| 5780 | } |
| 5781 | |
| 5782 | void addErrorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addError(c3ca1c130ce09c52).(const stdcxx . . $ std/::stringcxx . . $ std/string#& message, const stdcxx . . $ std/::stringcxx . . $ std/string#& details) { |
| 5783 | testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases..backcxx . . $ std/vector#back(6baabfa6fc7b3a8e).().errorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#errors..emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(message, details); |
| 5784 | ++totalErrorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalErrors.; |
| 5785 | } |
| 5786 | |
| 5787 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<JUnitTestCasecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#> testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases.; |
| 5788 | double totalSecondscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalSeconds. = 0; |
| 5789 | int totalErrorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalErrors. = 0, totalFailurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalFailures. = 0; |
| 5790 | }; |
| 5791 | |
| 5792 | JUnitTestCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData# testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData.; |
| 5793 | |
| 5794 | // caching pointers/references to objects of these types - safe to do |
| 5795 | const ContextOptionscxx . . $ doctest/ContextOptions#& optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt.; |
| 5796 | const TestCaseDatacxx . . $ doctest/TestCaseData#* tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#tc. = nullptr; |
| 5797 | |
| 5798 | JUnitReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitReporter(f5e9b9c5e836c04a).(const ContextOptionscxx . . $ doctest/ContextOptions#& co) |
| 5799 | : xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#XmlWriter(f7f45734e6842120).(*co.coutcxx . . $ doctest/ContextOptions#cout.) |
| 5800 | , optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt.(co) {} |
| 5801 | |
| 5802 | unsigned linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#line(560347b7e9428769).(unsigned l) const { return optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..no_line_numberscxx . . $ doctest/ContextOptions#no_line_numbers. ? 0 : l; } |
| 5803 | |
| 5804 | // ========================================================================================= |
| 5805 | // WHAT FOLLOWS ARE OVERRIDES OF THE VIRTUAL METHODS OF THE REPORTER INTERFACE |
| 5806 | // ========================================================================================= |
| 5807 | |
| 5808 | void report_querycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#report_query(4c411912a5f64970).(const QueryDatacxx . . $ doctest/QueryData#&) override { |
| 5809 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeDeclarationcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeDeclaration(49f6e7a06ebc5aa8).(); |
| 5810 | } |
| 5811 | |
| 5812 | void test_run_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_run_start(49f6e7a06ebc5aa8).() override { |
| 5813 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeDeclarationcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeDeclaration(49f6e7a06ebc5aa8).(); |
| 5814 | } |
| 5815 | |
| 5816 | void test_run_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_run_end(fd0a0441d5c4156).(const TestRunStatscxx . . $ doctest/TestRunStats#& p) override { |
| 5817 | // remove .exe extension - mainly to have the same output on UNIX and Windows |
| 5818 | stdcxx . . $ std/::stringcxx . . $ std/string# binary_name = skipPathFromFilenamecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..binary_namecxx . . $ doctest/ContextOptions#binary_name..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5819 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 5820 | if(binary_name.rfind(".exe") != std::string::npos) |
| 5821 | binary_name = binary_name.substr(0, binary_name.length() - 4); |
| 5822 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 5823 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("testsuites"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 5824 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("testsuite"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).).writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., binary_name) |
| 5825 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("errors"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..totalErrorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalErrors.) |
| 5826 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("failures"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..totalFailurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalFailures.) |
| 5827 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("tests"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., p.numAssertscxx . . $ doctest/TestRunStats#numAsserts.); |
| 5828 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..no_time_in_outputcxx . . $ doctest/ContextOptions#no_time_in_output. == false) { |
| 5829 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("time"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..totalSecondscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#totalSeconds.); |
| 5830 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).("timestamp"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., JUnitTestCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#::getCurrentTimestampcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#getCurrentTimestamp(efd28698952f529a).()); |
| 5831 | } |
| 5832 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..no_versioncxx . . $ doctest/ContextOptions#no_version. == false) |
| 5833 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("doctest_version"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., DOCTEST_VERSION_STRcxx . . $ `tests/thirdparty/doctest/doctest.h:57:9`!); |
| 5834 | |
| 5835 | for(const auto& testCase : testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..testcasescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#testcases.) { |
| 5836 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..startElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#startElement(57feaed1342cb8fa).("testcase"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5837 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).("classname"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., testCase.classnamecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#classname.) |
| 5838 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(90ab66ba558119ed).("name"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., testCase.namecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#name.); |
| 5839 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..no_time_in_outputcxx . . $ doctest/ContextOptions#no_time_in_output. == false) |
| 5840 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(5aa0f8536300e6e5).("time"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., testCase.timecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#time.); |
| 5841 | // This is not ideal, but it should be enough to mimic gtest's junit output. |
| 5842 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#writeAttribute(e23eaae64c276e31).("status"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "run"); |
| 5843 | |
| 5844 | for(const auto& failure : testCase.failurescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#failures.) { |
| 5845 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("failure"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5846 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("message"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., failure.messagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#message.) |
| 5847 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("type"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., failure.typecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#type.) |
| 5848 | .writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(failure.detailscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#details., false); |
| 5849 | } |
| 5850 | |
| 5851 | for(const auto& error : testCase.errorscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestCase#errors.) { |
| 5852 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..scopedElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#scopedElement(f133d0b0a4161c4c).("error"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).) |
| 5853 | .writeAttributecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeAttribute(808102793a9d838f).("message"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., error.messagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#message.) |
| 5854 | .writeTextcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#ScopedElement#writeText(9038027f17b7733e).(error.detailscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#JUnitTestMessage#details.); |
| 5855 | } |
| 5856 | |
| 5857 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5858 | } |
| 5859 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5860 | xmlcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#xml..endElementcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/XmlWriter#endElement(ceb2e1e320e5f4bb).(); |
| 5861 | } |
| 5862 | |
| 5863 | void test_case_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_case_start(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#& in) override { |
| 5864 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#add(c3ca1c130ce09c52).(skipPathFromFilenamecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(in.m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()), incxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_namecxx . . $ doctest/TestCaseData#m_name.); |
| 5865 | timercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#timer..startcxx . . $ doctest/detail/Timer#start(49f6e7a06ebc5aa8).(); |
| 5866 | } |
| 5867 | |
| 5868 | void test_case_reentercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_case_reenter(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#& in) override { |
| 5869 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addTimecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addTime(ba8836b59fb42830).(timercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#timer..getElapsedSecondscxx . . $ doctest/detail/Timer#getElapsedSeconds(21b6c25e127938e2).()); |
| 5870 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..appendSubcaseNamesToLastTestcasecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#appendSubcaseNamesToLastTestcase(7906a2abc7779835).(deepestSubcaseStackNamescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#deepestSubcaseStackNames.); |
| 5871 | deepestSubcaseStackNamescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#deepestSubcaseStackNames..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 5872 | |
| 5873 | timercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#timer..startcxx . . $ doctest/detail/Timer#start(49f6e7a06ebc5aa8).(); |
| 5874 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#add(c3ca1c130ce09c52).(skipPathFromFilenamecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(in.m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()), incxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_namecxx . . $ doctest/TestCaseData#m_name.); |
| 5875 | } |
| 5876 | |
| 5877 | void test_case_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_case_end(6ed55a504c9d530).(const CurrentTestCaseStatscxx . . $ doctest/CurrentTestCaseStats#&) override { |
| 5878 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addTimecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addTime(ba8836b59fb42830).(timercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#timer..getElapsedSecondscxx . . $ doctest/detail/Timer#getElapsedSeconds(21b6c25e127938e2).()); |
| 5879 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..appendSubcaseNamesToLastTestcasecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#appendSubcaseNamesToLastTestcase(7906a2abc7779835).(deepestSubcaseStackNamescxx . . $ std/vector#vector(a1201200cf0efa42).); |
| 5880 | deepestSubcaseStackNamescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#deepestSubcaseStackNames..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 5881 | } |
| 5882 | |
| 5883 | void test_case_exceptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_case_exception(ea977ac1bb71548f).(const TestCaseExceptioncxx . . $ doctest/TestCaseException#& e) override { |
| 5884 | DOCTEST_LOCK_MUTEXcxx . . $ std/mutex#(mutex) |
| 5885 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addErrorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addError(c3ca1c130ce09c52).("exception"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., ecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..error_stringcxx . . $ doctest/TestCaseException#error_string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).()); |
| 5886 | } |
| 5887 | |
| 5888 | void subcase_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#subcase_start(2c57673d4de91813).(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& in) override { |
| 5889 | deepestSubcaseStackNamescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#deepestSubcaseStackNames..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(in.m_namecxx . . $ doctest/SubcaseSignature#m_name.); |
| 5890 | } |
| 5891 | |
| 5892 | void subcase_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#subcase_end(49f6e7a06ebc5aa8).() override {} |
| 5893 | |
| 5894 | void log_assertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#log_assert(ce9da7727ef6fad1).(const AssertDatacxx . . $ doctest/AssertData#& rb) override { |
| 5895 | if(!rb.m_failedcxx . . $ doctest/AssertData#m_failed.) // report only failures & ignore the `success` option |
| 5896 | return; |
| 5897 | |
| 5898 | DOCTEST_LOCK_MUTEXcxx . . $ std/lock_guard#(mutex) |
| 5899 | |
| 5900 | stdcxx . . $ std/::ostringstreamcxx . . $ std/ostringstream# oscxx . . $ std/__cxx11/basic_ostringstream#basic_ostringstream(49f6e7a06ebc5aa8).; |
| 5901 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(rb.m_filecxx . . $ doctest/AssertData#m_file.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line. ? ":" : "(") |
| 5902 | <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#line(560347b7e9428769).(rb.m_linecxx . . $ doctest/AssertData#m_line.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line. ? ":" : "):") <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 5903 | |
| 5904 | fulltext_log_assert_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/fulltext_log_assert_to_stream(1b2f260aa5b73bee).(os, rb); |
| 5905 | log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#log_contexts(ed89a3598fa22faa).(os); |
| 5906 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addFailurecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addFailure(9c65d82330563d7e).(rbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_decompcxx . . $ doctest/AssertData#m_decomp..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), assertStringcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(rb.m_atcxx . . $ doctest/AssertData#m_at.), os.strcxx . . $ std/__cxx11/basic_ostringstream#str(d33e1a6fd36255f7).()); |
| 5907 | } |
| 5908 | |
| 5909 | void log_messagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#log_message(e102a1222277320f).(const MessageDatacxx . . $ doctest/MessageData#& mb) override { |
| 5910 | if(mb.m_severitycxx . . $ doctest/MessageData#m_severity. & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn.) // report only failures |
| 5911 | return; |
| 5912 | |
| 5913 | DOCTEST_LOCK_MUTEXcxx . . $ `tests/thirdparty/doctest/doctest.h:3175:9`!(mutex) |
| 5914 | |
| 5915 | stdcxx . . $ std/::ostringstreamcxx . . $ std/ostringstream# oscxx . . $ std/__cxx11/basic_ostringstream#basic_ostringstream(49f6e7a06ebc5aa8).; |
| 5916 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(mb.m_filecxx . . $ doctest/MessageData#m_file.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line. ? ":" : "(") |
| 5917 | <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). linecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#line(560347b7e9428769).(mb.m_linecxx . . $ doctest/MessageData#m_line.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#opt..gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line. ? ":" : "):") <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 5918 | |
| 5919 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). mb.m_stringcxx . . $ doctest/MessageData#m_string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 5920 | log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#log_contexts(ed89a3598fa22faa).(os); |
| 5921 | |
| 5922 | testCaseDatacxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#testCaseData..addFailurecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#JUnitTestCaseData#addFailure(9c65d82330563d7e).(mbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_stringcxx . . $ doctest/MessageData#m_string..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), |
| 5923 | mbcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..m_severitycxx . . $ doctest/MessageData#m_severity. & assertTypecxx . . $ doctest/assertType/::is_checkcxx . . $ doctest/assertType/is_check. ? "FAIL_CHECK" : "FAIL", os.strcxx . . $ std/__cxx11/basic_ostringstream#str(d33e1a6fd36255f7).()); |
| 5924 | } |
| 5925 | |
| 5926 | void test_case_skippedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#test_case_skipped(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) override {} |
| 5927 | |
| 5928 | void log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/JUnitReporter#log_contexts(ed89a3598fa22faa).(stdcxx . . $ std/::ostringstreamcxx . . $ std/ostringstream#& s) { |
| 5929 | int num_contexts = get_num_active_contextscxx . . $ doctest/IReporter#get_num_active_contexts(b126dc7c1de90089).(); |
| 5930 | if(num_contexts) { |
| 5931 | auto contexts = get_active_contextscxx . . $ doctest/IReporter#get_active_contexts(586ddb2bcccf74b2).(); |
| 5932 | |
| 5933 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " logged: "; |
| 5934 | for(int i = 0; i < num_contexts; ++i) { |
| 5935 | s <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (i == 0 ? "" : " "); |
| 5936 | contexts[i]->stringifycxx . . $ doctest/IContextScope#stringify(7b1875f5045e6781).(&s); |
| 5937 | s <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 5938 | } |
| 5939 | } |
| 5940 | } |
| 5941 | }; |
| 5942 | |
| 5943 | DOCTEST_REGISTER_REPORTERcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/DOCTEST_ANON_REPORTER_9.("junit", 0, JUnitReporter); |
| 5944 | |
| 5945 | struct Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace# |
| 5946 | { |
| 5947 | int nrSpacescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#nrSpaces.; |
| 5948 | explicit Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(int nr) |
| 5949 | : nrSpacescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#nrSpaces.(nr) {} |
| 5950 | }; |
| 5951 | |
| 5952 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& operatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& out, const Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#& ws) { |
| 5953 | if(ws.nrSpacescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#nrSpaces. != 0) |
| 5954 | out <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(ws.nrSpacescxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#nrSpaces.) <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ' '; |
| 5955 | return out; |
| 5956 | } |
| 5957 | |
| 5958 | struct ConsoleReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter# : public IReportercxx . . $ doctest/IReporter# |
| 5959 | { |
| 5960 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s.; |
| 5961 | bool hasLoggedCurrentTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#hasLoggedCurrentTestStart.; |
| 5962 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<SubcaseSignaturecxx . . $ doctest/SubcaseSignature#> subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack.; |
| 5963 | size_tcxx . . $ doctest/size_t# currentSubcaseLevelcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#currentSubcaseLevel.; |
| 5964 | DOCTEST_DECLARE_MUTEXcxx . . $ `tests/thirdparty/doctest/doctest.h:3173:9`!(mutex) |
| 5965 | |
| 5966 | // caching pointers/references to objects of these types - safe to do |
| 5967 | const ContextOptionscxx . . $ doctest/ContextOptions#& optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt.; |
| 5968 | const TestCaseDatacxx . . $ doctest/TestCaseData#* tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.; |
| 5969 | |
| 5970 | ConsoleReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#ConsoleReporter(f5e9b9c5e836c04a).(const ContextOptionscxx . . $ doctest/ContextOptions#& co) |
| 5971 | : scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s.(*co.coutcxx . . $ doctest/ContextOptions#cout.) |
| 5972 | , optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt.(co) {} |
| 5973 | |
| 5974 | ConsoleReportercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#ConsoleReporter(413e83f48829348d).(const ContextOptionscxx . . $ doctest/ContextOptions#& co, stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& ostr) |
| 5975 | : scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s.(ostr) |
| 5976 | , optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt.(co) {} |
| 5977 | |
| 5978 | // ========================================================================================= |
| 5979 | // WHAT FOLLOWS ARE HELPERS USED BY THE OVERRIDES OF THE VIRTUAL METHODS OF THE INTERFACE |
| 5980 | // ========================================================================================= |
| 5981 | |
| 5982 | void separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).() { |
| 5983 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. |
| 5984 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "===============================================================================" |
| 5985 | "\n"; |
| 5986 | } |
| 5987 | |
| 5988 | const char* getSuccessOrFailStringcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#getSuccessOrFailString(3de5e987f7145f0c).(bool success, assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, |
| 5989 | const char* success_str) { |
| 5990 | if(success) |
| 5991 | return success_str; |
| 5992 | return failureStringcxx . . $ doctest/failureString(90cddebe9d4cd0df).(at); |
| 5993 | } |
| 5994 | |
| 5995 | Colorcxx . . $ doctest/Color/::Enumcxx . . $ doctest/Color/Enum# getSuccessOrFailColorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#getSuccessOrFailColor(3e17a99ce469cc19).(bool success, assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at) { |
| 5996 | return success ? Colorcxx . . $ doctest/Color/::BrightGreencxx . . $ doctest/Color/BrightGreen. : |
| 5997 | (at & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn.) ? Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. : Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red.; |
| 5998 | } |
| 5999 | |
| 6000 | void successOrFailColoredStringToStreamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#successOrFailColoredStringToStream(41e8cd6c00a1d019).(bool success, assertTypecxx . . $ doctest/assertType/::Enumcxx . . $ doctest/assertType/Enum# at, |
| 6001 | const char* success_str = "SUCCESS") { |
| 6002 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). getSuccessOrFailColorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#getSuccessOrFailColor(3e17a99ce469cc19).(success, at) |
| 6003 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). getSuccessOrFailStringcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#getSuccessOrFailString(3de5e987f7145f0c).(success, at, success_str) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ": "; |
| 6004 | } |
| 6005 | |
| 6006 | void log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#log_contexts(49f6e7a06ebc5aa8).() { |
| 6007 | int num_contexts = get_num_active_contextscxx . . $ doctest/IReporter#get_num_active_contexts(b126dc7c1de90089).(); |
| 6008 | if(num_contexts) { |
| 6009 | auto contexts = get_active_contextscxx . . $ doctest/IReporter#get_active_contexts(586ddb2bcccf74b2).(); |
| 6010 | |
| 6011 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " logged: "; |
| 6012 | for(int i = 0; i < num_contexts; ++i) { |
| 6013 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (i == 0 ? "" : " "); |
| 6014 | contexts[i]->stringifycxx . . $ doctest/IContextScope#stringify(7b1875f5045e6781).(&scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s.); |
| 6015 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6016 | } |
| 6017 | } |
| 6018 | |
| 6019 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6020 | } |
| 6021 | |
| 6022 | // this was requested to be made virtual so users could override it |
| 6023 | virtual void file_line_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#file_line_to_stream(1e8c11a11d48e725).(const char* file, int line, |
| 6024 | const char* tail = "") { |
| 6025 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::LightGreycxx . . $ doctest/Color/LightGrey. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). skipPathFromFilenamecxx . . $ doctest/skipPathFromFilename(fb58d2e09a2a1ce6).(file) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line. ? ":" : "(") |
| 6026 | <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..no_line_numberscxx . . $ doctest/ContextOptions#no_line_numbers. ? 0 : line) // 0 or the real num depending on the option |
| 6027 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..gnu_file_linecxx . . $ doctest/ContextOptions#gnu_file_line. ? ":" : "):") <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). tail; |
| 6028 | } |
| 6029 | |
| 6030 | void logTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#logTestStart(49f6e7a06ebc5aa8).() { |
| 6031 | if(hasLoggedCurrentTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#hasLoggedCurrentTestStart.) |
| 6032 | return; |
| 6033 | |
| 6034 | separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).(); |
| 6035 | file_line_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#file_line_to_stream(1e8c11a11d48e725).(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_linecxx . . $ doctest/TestCaseData#m_line., "\n"); |
| 6036 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_descriptioncxx . . $ doctest/TestCaseData#m_description.) |
| 6037 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "DESCRIPTION: " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_descriptioncxx . . $ doctest/TestCaseData#m_description. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6038 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite. && tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.[0] != '\0') |
| 6039 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "TEST SUITE: " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6040 | if(strncmp(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_namecxx . . $ doctest/TestCaseData#m_name., " Scenario:", 11) != 0) |
| 6041 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "TEST CASE: "; |
| 6042 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_namecxx . . $ doctest/TestCaseData#m_name. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6043 | |
| 6044 | for(size_tcxx . . $ doctest/size_t# i = 0; i < currentSubcaseLevelcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#currentSubcaseLevel.; ++i) { |
| 6045 | if(subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i].m_namecxx . . $ doctest/SubcaseSignature#m_name.[cxx . . $ doctest/String#`operator[]`(584c111b47189dd).0] != '\0') |
| 6046 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i].m_namecxx . . $ doctest/SubcaseSignature#m_name. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6047 | } |
| 6048 | |
| 6049 | if(currentSubcaseLevelcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#currentSubcaseLevel. != subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).()) { |
| 6050 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\nDEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):\n" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6051 | for(size_tcxx . . $ doctest/size_t# i = 0; i < subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); ++i) { |
| 6052 | if(subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i].m_namecxx . . $ doctest/SubcaseSignature#m_name.[cxx . . $ doctest/String#`operator[]`(584c111b47189dd).0] != '\0') |
| 6053 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i].m_namecxx . . $ doctest/SubcaseSignature#m_name. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6054 | } |
| 6055 | } |
| 6056 | |
| 6057 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6058 | |
| 6059 | hasLoggedCurrentTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#hasLoggedCurrentTestStart. = true; |
| 6060 | } |
| 6061 | |
| 6062 | void printVersioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printVersion(49f6e7a06ebc5aa8).() { |
| 6063 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..no_versioncxx . . $ doctest/ContextOptions#no_version. == false) |
| 6064 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "doctest version is \"" |
| 6065 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). DOCTEST_VERSION_STRcxx . . $ `tests/thirdparty/doctest/doctest.h:57:9`! <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\"\n"; |
| 6066 | } |
| 6067 | |
| 6068 | void printIntrocxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printIntro(49f6e7a06ebc5aa8).() { |
| 6069 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..no_introcxx . . $ doctest/ContextOptions#no_intro. == false) { |
| 6070 | printVersioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printVersion(49f6e7a06ebc5aa8).(); |
| 6071 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6072 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "run with \"--" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "help\" for options\n"; |
| 6073 | } |
| 6074 | } |
| 6075 | |
| 6076 | void printHelpcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printHelp(49f6e7a06ebc5aa8).() { |
| 6077 | int sizePrefixDisplay = static_cast<int>(strlen(DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`!)); |
| 6078 | printVersioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printVersion(49f6e7a06ebc5aa8).(); |
| 6079 | // clang-format off |
| 6080 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest]\n" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6081 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6082 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "boolean values: \"1/on/yes/true\" or \"0/off/no/false\"\n"; |
| 6083 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6084 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filter values: \"str1,str2,str3\" (comma separated strings)\n"; |
| 6085 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest]\n" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6086 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6087 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters use wildcards for matching strings\n"; |
| 6088 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6089 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "something passes a filter if any of the strings in a filter matches\n"; |
| 6090 | #ifndef DOCTEST_CONFIG_NO_UNPREFIXED_OPTIONS |
| 6091 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest]\n" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6092 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6093 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ALL FLAGS, OPTIONS AND FILTERS ALSO AVAILABLE WITH A \"" DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "\" PREFIX!!!\n"; |
| 6094 | #endif |
| 6095 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest]\n" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6096 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6097 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Query flags - the program quits after them. Available:\n\n"; |
| 6098 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "?, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "help, -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "h " |
| 6099 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*0) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "prints this message\n"; |
| 6100 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "v, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "version " |
| 6101 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "prints the version\n"; |
| 6102 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "c, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "count " |
| 6103 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "prints the number of matching tests\n"; |
| 6104 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "ltc, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "list-test-cases " |
| 6105 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "lists all matching tests by name\n"; |
| 6106 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "lts, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "list-test-suites " |
| 6107 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "lists all matching test suites\n"; |
| 6108 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "lr, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "list-reporters " |
| 6109 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "lists all registered reporters\n\n"; |
| 6110 | // ================================================================================== << 79 |
| 6111 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6112 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "The available <int>/<string> options/filters are:\n\n"; |
| 6113 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "tc, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "test-case=<filters> " |
| 6114 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters tests by their name\n"; |
| 6115 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "tce, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "test-case-exclude=<filters> " |
| 6116 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters OUT tests by their name\n"; |
| 6117 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "sf, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "source-file=<filters> " |
| 6118 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters tests by their file\n"; |
| 6119 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "sfe, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "source-file-exclude=<filters> " |
| 6120 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters OUT tests by their file\n"; |
| 6121 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "ts, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "test-suite=<filters> " |
| 6122 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters tests by their test suite\n"; |
| 6123 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "tse, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "test-suite-exclude=<filters> " |
| 6124 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters OUT tests by their test suite\n"; |
| 6125 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "sc, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "subcase=<filters> " |
| 6126 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters subcases by their name\n"; |
| 6127 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "sce, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "subcase-exclude=<filters> " |
| 6128 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters OUT subcases by their name\n"; |
| 6129 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "r, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "reporters=<filters> " |
| 6130 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "reporters to use (console is default)\n"; |
| 6131 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "o, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "out=<string> " |
| 6132 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "output filename\n"; |
| 6133 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "ob, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "order-by=<string> " |
| 6134 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "how the tests should be ordered\n"; |
| 6135 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*3) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " <string> - [file/suite/name/rand/none]\n"; |
| 6136 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "rs, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "rand-seed=<int> " |
| 6137 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "seed for random ordering\n"; |
| 6138 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "f, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "first=<int> " |
| 6139 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "the first test passing the filters to\n"; |
| 6140 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*3) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " execute - for range-based execution\n"; |
| 6141 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "l, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "last=<int> " |
| 6142 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "the last test passing the filters to\n"; |
| 6143 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*3) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " execute - for range-based execution\n"; |
| 6144 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "aa, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "abort-after=<int> " |
| 6145 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "stop after <int> failed assertions\n"; |
| 6146 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "scfl,--" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "subcase-filter-levels=<int> " |
| 6147 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "apply filters for the first <int> levels\n"; |
| 6148 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6149 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Bool options - can be used like flags and true is assumed. Available:\n\n"; |
| 6150 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "s, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "success=<bool> " |
| 6151 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "include successful assertions in output\n"; |
| 6152 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "cs, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "case-sensitive=<bool> " |
| 6153 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "filters being treated as case sensitive\n"; |
| 6154 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "e, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "exit=<bool> " |
| 6155 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "exits after the tests finish\n"; |
| 6156 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "d, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "duration=<bool> " |
| 6157 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "prints the time duration of each test\n"; |
| 6158 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "m, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "minimal=<bool> " |
| 6159 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "minimal console output (only failures)\n"; |
| 6160 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "q, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "quiet=<bool> " |
| 6161 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "no console output\n"; |
| 6162 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "nt, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-throw=<bool> " |
| 6163 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "skips exceptions-related assert checks\n"; |
| 6164 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "ne, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-exitcode=<bool> " |
| 6165 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "returns (or exits) always with success\n"; |
| 6166 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "nr, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-run=<bool> " |
| 6167 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "skips all runtime doctest operations\n"; |
| 6168 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "ni, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-intro=<bool> " |
| 6169 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "omit the framework intro in the output\n"; |
| 6170 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "nv, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-version=<bool> " |
| 6171 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "omit the framework version in the output\n"; |
| 6172 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "nc, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-colors=<bool> " |
| 6173 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "disables colors in output\n"; |
| 6174 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "fc, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "force-colors=<bool> " |
| 6175 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "use colors even when not in a tty\n"; |
| 6176 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "nb, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-breaks=<bool> " |
| 6177 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "disables breakpoints in debuggers\n"; |
| 6178 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "ns, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-skip=<bool> " |
| 6179 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "don't skip test cases marked as skip\n"; |
| 6180 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "gfl, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "gnu-file-line=<bool> " |
| 6181 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#Whitespace(d4f767463ce0a6b3).(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ":n: vs (n): for line numbers in output\n"; |
| 6182 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "npf, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-path-filenames=<bool> " |
| 6183 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "only filenames and no paths in output\n"; |
| 6184 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "nln, --" DOCTEST_OPTIONS_PREFIX_DISPLAYcxx . . $ `tests/thirdparty/doctest/doctest.h:3265:9`! "no-line-numbers=<bool> " |
| 6185 | <<cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/`operator<<`(79766b81ec385929). Whitespacecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/Whitespace#(sizePrefixDisplay*1) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "0 instead of real line numbers in output\n"; |
| 6186 | // ================================================================================== << 79 |
| 6187 | // clang-format on |
| 6188 | |
| 6189 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6190 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "for more information visit the project documentation\n\n"; |
| 6191 | } |
| 6192 | |
| 6193 | void printRegisteredReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printRegisteredReporters(49f6e7a06ebc5aa8).() { |
| 6194 | printVersioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printVersion(49f6e7a06ebc5aa8).(); |
| 6195 | auto printReporters = [this] (const reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#& reporters, const char* type) { |
| 6196 | if(reporters.sizecxx . . $ std/map#size(a08d7b23eb6940f6).()) { |
| 6197 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "listing all registered " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). type <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6198 | for(auto& curr : reporters) |
| 6199 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "priority: " <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(5) <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). curr.first.first |
| 6200 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " name: " <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). curr.first.second <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6201 | } |
| 6202 | }; |
| 6203 | printReporters(cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printRegisteredReporters(49f6e7a06ebc5aa8).$anonymous_type_2#`operator()`(b10d0f0f27d4e90f).getListenerscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getListeners(be1c6a749067b56).(), "listeners"); |
| 6204 | printReporters(cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printRegisteredReporters(49f6e7a06ebc5aa8).$anonymous_type_2#`operator()`(b10d0f0f27d4e90f).getReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getReporters(be1c6a749067b56).(), "reporters"); |
| 6205 | } |
| 6206 | |
| 6207 | // ========================================================================================= |
| 6208 | // WHAT FOLLOWS ARE OVERRIDES OF THE VIRTUAL METHODS OF THE REPORTER INTERFACE |
| 6209 | // ========================================================================================= |
| 6210 | |
| 6211 | void report_querycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#report_query(4c411912a5f64970).(const QueryDatacxx . . $ doctest/QueryData#& in) override { |
| 6212 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..versioncxx . . $ doctest/ContextOptions#version.) { |
| 6213 | printVersioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printVersion(49f6e7a06ebc5aa8).(); |
| 6214 | } else if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..helpcxx . . $ doctest/ContextOptions#help.) { |
| 6215 | printHelpcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printHelp(49f6e7a06ebc5aa8).(); |
| 6216 | } else if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..list_reporterscxx . . $ doctest/ContextOptions#list_reporters.) { |
| 6217 | printRegisteredReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printRegisteredReporters(49f6e7a06ebc5aa8).(); |
| 6218 | } else if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..countcxx . . $ doctest/ContextOptions#count. || optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..list_test_casescxx . . $ doctest/ContextOptions#list_test_cases.) { |
| 6219 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..list_test_casescxx . . $ doctest/ContextOptions#list_test_cases.) { |
| 6220 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6221 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "listing all test case names\n"; |
| 6222 | separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).(); |
| 6223 | } |
| 6224 | |
| 6225 | for(unsigned i = 0; i < in.num_datacxx . . $ doctest/QueryData#num_data.; ++i) |
| 6226 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). in.datacxx . . $ doctest/QueryData#data.[i]->m_namecxx . . $ doctest/TestCaseData#m_name. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6227 | |
| 6228 | separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).(); |
| 6229 | |
| 6230 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6231 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "unskipped test cases passing the current filters: " |
| 6232 | <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). g_cscxx . . $ doctest/detail/g_cs.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6233 | |
| 6234 | } else if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites.) { |
| 6235 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "listing all test suites\n"; |
| 6236 | separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).(); |
| 6237 | |
| 6238 | for(unsigned i = 0; i < in.num_datacxx . . $ doctest/QueryData#num_data.; ++i) |
| 6239 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). in.datacxx . . $ doctest/QueryData#data.[i]->m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6240 | |
| 6241 | separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).(); |
| 6242 | |
| 6243 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6244 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "unskipped test cases passing the current filters: " |
| 6245 | <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). g_cscxx . . $ doctest/detail/g_cs.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6246 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6247 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "test suites with unskipped test cases passing the current filters: " |
| 6248 | <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). g_cscxx . . $ doctest/detail/g_cs.->numTestSuitesPassingFilterscxx . . $ doctest/TestRunStats#numTestSuitesPassingFilters. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6249 | } |
| 6250 | } |
| 6251 | |
| 6252 | void test_run_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_run_start(49f6e7a06ebc5aa8).() override { |
| 6253 | if(!optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..minimalcxx . . $ doctest/ContextOptions#minimal.) |
| 6254 | printIntrocxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#printIntro(49f6e7a06ebc5aa8).(); |
| 6255 | } |
| 6256 | |
| 6257 | void test_run_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_run_end(fd0a0441d5c4156).(const TestRunStatscxx . . $ doctest/TestRunStats#& p) override { |
| 6258 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..minimalcxx . . $ doctest/ContextOptions#minimal. && p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. == 0) |
| 6259 | return; |
| 6260 | |
| 6261 | separator_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#separator_to_stream(49f6e7a06ebc5aa8).(); |
| 6262 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/basic_ostream#`operator<<`(cac9e8121de198e9). stdcxx . . $ std/::deccxx . . $ std/dec(cf36cc481190cd1f).; |
| 6263 | |
| 6264 | auto totwidth = int(stdcxx . . $ std/::ceil(log10(static_cast<double>(stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters., static_cast<unsigned>(p.numAssertscxx . . $ doctest/TestRunStats#numAsserts.))) + 1))); |
| 6265 | auto passwidth = int(stdcxx . . $ std/::ceil(log10(static_cast<double>(stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. - p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed., static_cast<unsigned>(p.numAssertscxx . . $ doctest/TestRunStats#numAsserts. - p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed.))) + 1))); |
| 6266 | auto failwidth = int(stdcxx . . $ std/::ceil(log10(static_cast<double>(stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed., static_cast<unsigned>(p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed.))) + 1))); |
| 6267 | const bool anythingFailed = p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. > 0 || p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. > 0; |
| 6268 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "test cases: " <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(totwidth) |
| 6269 | <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " | " |
| 6270 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). ((p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. == 0 || anythingFailed) ? Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. : |
| 6271 | Colorcxx . . $ doctest/Color/::Greencxx . . $ doctest/Color/Green.) |
| 6272 | <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(passwidth) <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. - p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " passed" |
| 6273 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " | " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). (p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. > 0 ? Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. : Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.) |
| 6274 | <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(failwidth) <<cxx . . $ std/basic_ostream#`operator<<`(2a97a540b49fd9f2). p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " failed" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " |"; |
| 6275 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..no_skipped_summarycxx . . $ doctest/ContextOptions#no_skipped_summary. == false) { |
| 6276 | const int numSkipped = p.numTestCasescxx . . $ doctest/TestRunStats#numTestCases. - p.numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.; |
| 6277 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). (numSkipped == 0 ? Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. : Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow.) <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). numSkipped |
| 6278 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " skipped" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6279 | } |
| 6280 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6281 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "assertions: " <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(totwidth) |
| 6282 | <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). p.numAssertscxx . . $ doctest/TestRunStats#numAsserts. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " | " |
| 6283 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). ((p.numAssertscxx . . $ doctest/TestRunStats#numAsserts. == 0 || anythingFailed) ? Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. : Colorcxx . . $ doctest/Color/::Greencxx . . $ doctest/Color/Green.) |
| 6284 | <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(passwidth) <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). (p.numAssertscxx . . $ doctest/TestRunStats#numAsserts. - p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " passed" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6285 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " | " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). (p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. > 0 ? Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. : Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.) <<cxx . . $ std/`operator<<`(fe9a269018418773). stdcxx . . $ std/::setwcxx . . $ std/setw(f06ce2e9220601fb).(failwidth) |
| 6286 | <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). p.numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " failed" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " |\n"; |
| 6287 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[doctest] " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. |
| 6288 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Status: " <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). (p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. > 0 ? Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. : Colorcxx . . $ doctest/Color/::Greencxx . . $ doctest/Color/Green.) |
| 6289 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ((p.numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. > 0) ? "FAILURE!" : "SUCCESS!") <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/basic_ostream#`operator<<`(51c30306c017a708). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 6290 | } |
| 6291 | |
| 6292 | void test_case_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_case_start(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#& in) override { |
| 6293 | hasLoggedCurrentTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#hasLoggedCurrentTestStart. = false; |
| 6294 | tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc. = ∈ |
| 6295 | subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 6296 | currentSubcaseLevelcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#currentSubcaseLevel. = 0; |
| 6297 | } |
| 6298 | |
| 6299 | void test_case_reentercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_case_reenter(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) override { |
| 6300 | subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 6301 | } |
| 6302 | |
| 6303 | void test_case_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_case_end(6ed55a504c9d530).(const CurrentTestCaseStatscxx . . $ doctest/CurrentTestCaseStats#& st) override { |
| 6304 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_no_outputcxx . . $ doctest/TestCaseData#m_no_output.) |
| 6305 | return; |
| 6306 | |
| 6307 | // log the preamble of the test case only if there is something |
| 6308 | // else to print - something other than that an assert has failed |
| 6309 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..durationcxx . . $ doctest/ContextOptions#duration. || |
| 6310 | (st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. && st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. != static_cast<int>(TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::AssertFailurecxx . . $ doctest/TestCaseFailureReason/AssertFailure.))) |
| 6311 | logTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#logTestStart(49f6e7a06ebc5aa8).(); |
| 6312 | |
| 6313 | if(optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..durationcxx . . $ doctest/ContextOptions#duration.) |
| 6314 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(f54f2ca72cfad5a6). stdcxx . . $ std/::setprecisioncxx . . $ std/setprecision(94726062283fda89).(6) <<cxx . . $ std/basic_ostream#`operator<<`(cac9e8121de198e9). stdcxx . . $ std/::fixedcxx . . $ std/fixed(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(38fc4d3a3f4c9f5). st.secondscxx . . $ doctest/CurrentTestCaseStats#seconds. |
| 6315 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " s: " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_namecxx . . $ doctest/TestCaseData#m_name. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6316 | |
| 6317 | if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::Timeoutcxx . . $ doctest/TestCaseFailureReason/Timeout.) |
| 6318 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Test case exceeded time limit of " <<cxx . . $ std/`operator<<`(f54f2ca72cfad5a6). stdcxx . . $ std/::setprecisioncxx . . $ std/setprecision(94726062283fda89).(6) |
| 6319 | <<cxx . . $ std/basic_ostream#`operator<<`(cac9e8121de198e9). stdcxx . . $ std/::fixedcxx . . $ std/fixed(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(38fc4d3a3f4c9f5). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_timeoutcxx . . $ doctest/TestCaseData#m_timeout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "!\n"; |
| 6320 | |
| 6321 | if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::ShouldHaveFailedButDidntcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedButDidnt.) { |
| 6322 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Should have failed but didn't! Marking it as failed!\n"; |
| 6323 | } else if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::ShouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/ShouldHaveFailedAndDid.) { |
| 6324 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Failed as expected so marking it as not failed\n"; |
| 6325 | } else if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::CouldHaveFailedAndDidcxx . . $ doctest/TestCaseFailureReason/CouldHaveFailedAndDid.) { |
| 6326 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Allowed to fail so marking it as not failed\n"; |
| 6327 | } else if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::DidntFailExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/DidntFailExactlyNumTimes.) { |
| 6328 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Didn't fail exactly " <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures. |
| 6329 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " times so marking it as failed!\n"; |
| 6330 | } else if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::FailedExactlyNumTimescxx . . $ doctest/TestCaseFailureReason/FailedExactlyNumTimes.) { |
| 6331 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Yellowcxx . . $ doctest/Color/Yellow. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Failed exactly " <<cxx . . $ std/basic_ostream#`operator<<`(a020b2f75caec5c6). tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_expected_failurescxx . . $ doctest/TestCaseData#m_expected_failures. |
| 6332 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " times as expected so marking it as not failed!\n"; |
| 6333 | } |
| 6334 | if(st.failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. & TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::TooManyFailedAssertscxx . . $ doctest/TestCaseFailureReason/TooManyFailedAsserts.) { |
| 6335 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Aborting - too many failed asserts!\n"; |
| 6336 | } |
| 6337 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; // lgtm [cpp/useless-expression] |
| 6338 | } |
| 6339 | |
| 6340 | void test_case_exceptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_case_exception(ea977ac1bb71548f).(const TestCaseExceptioncxx . . $ doctest/TestCaseException#& e) override { |
| 6341 | DOCTEST_LOCK_MUTEXcxx . . $ std/lock_guard#(mutex) |
| 6342 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_no_outputcxx . . $ doctest/TestCaseData#m_no_output.) |
| 6343 | return; |
| 6344 | |
| 6345 | logTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#logTestStart(49f6e7a06ebc5aa8).(); |
| 6346 | |
| 6347 | file_line_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#file_line_to_stream(1e8c11a11d48e725).(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_linecxx . . $ doctest/TestCaseData#m_line., " "); |
| 6348 | successOrFailColoredStringToStreamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#successOrFailColoredStringToStream(41e8cd6c00a1d019).(false, e.is_crashcxx . . $ doctest/TestCaseException#is_crash. ? assertTypecxx . . $ doctest/assertType/::is_requirecxx . . $ doctest/assertType/is_require. : |
| 6349 | assertTypecxx . . $ doctest/assertType/::is_checkcxx . . $ doctest/assertType/is_check.); |
| 6350 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Redcxx . . $ doctest/Color/Red. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (e.is_crashcxx . . $ doctest/TestCaseException#is_crash. ? "test case CRASHED: " : "test case THREW exception: ") |
| 6351 | <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Cyancxx . . $ doctest/Color/Cyan. <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). e.error_stringcxx . . $ doctest/TestCaseException#error_string. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6352 | |
| 6353 | int num_stringified_contexts = get_num_stringified_contextscxx . . $ doctest/IReporter#get_num_stringified_contexts(b126dc7c1de90089).(); |
| 6354 | if(num_stringified_contexts) { |
| 6355 | auto stringified_contexts = get_stringified_contextscxx . . $ doctest/IReporter#get_stringified_contexts(9029b033df7d8e43).(); |
| 6356 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " logged: "; |
| 6357 | for(int i = num_stringified_contexts; i > 0; --i) { |
| 6358 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (i == num_stringified_contexts ? "" : " ") |
| 6359 | <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). stringified_contexts[i - 1] <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6360 | } |
| 6361 | } |
| 6362 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n" <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None.; |
| 6363 | } |
| 6364 | |
| 6365 | void subcase_startcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcase_start(2c57673d4de91813).(const SubcaseSignaturecxx . . $ doctest/SubcaseSignature#& subc) override { |
| 6366 | subcasesStackcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcasesStack..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(subc); |
| 6367 | ++currentSubcaseLevelcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#currentSubcaseLevel.; |
| 6368 | hasLoggedCurrentTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#hasLoggedCurrentTestStart. = false; |
| 6369 | } |
| 6370 | |
| 6371 | void subcase_endcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#subcase_end(49f6e7a06ebc5aa8).() override { |
| 6372 | --currentSubcaseLevelcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#currentSubcaseLevel.; |
| 6373 | hasLoggedCurrentTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#hasLoggedCurrentTestStart. = false; |
| 6374 | } |
| 6375 | |
| 6376 | void log_assertcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#log_assert(ce9da7727ef6fad1).(const AssertDatacxx . . $ doctest/AssertData#& rb) override { |
| 6377 | if((!rb.m_failedcxx . . $ doctest/AssertData#m_failed. && !optcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#opt..successcxx . . $ doctest/ContextOptions#success.) || tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_no_outputcxx . . $ doctest/TestCaseData#m_no_output.) |
| 6378 | return; |
| 6379 | |
| 6380 | DOCTEST_LOCK_MUTEXcxx . . $ std/(mutex) |
| 6381 | |
| 6382 | logTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#logTestStart(49f6e7a06ebc5aa8).(); |
| 6383 | |
| 6384 | file_line_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#file_line_to_stream(1e8c11a11d48e725).(rb.m_filecxx . . $ doctest/AssertData#m_file., rb.m_linecxx . . $ doctest/AssertData#m_line., " "); |
| 6385 | successOrFailColoredStringToStreamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#successOrFailColoredStringToStream(41e8cd6c00a1d019).(!rb.m_failedcxx . . $ doctest/AssertData#m_failed., rb.m_atcxx . . $ doctest/AssertData#m_at.); |
| 6386 | |
| 6387 | fulltext_log_assert_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/fulltext_log_assert_to_stream(1b2f260aa5b73bee).(scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s., rb); |
| 6388 | |
| 6389 | log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#log_contexts(49f6e7a06ebc5aa8).(); |
| 6390 | } |
| 6391 | |
| 6392 | void log_messagecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#log_message(e102a1222277320f).(const MessageDatacxx . . $ doctest/MessageData#& mb) override { |
| 6393 | if(tccxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#tc.->m_no_outputcxx . . $ doctest/TestCaseData#m_no_output.) |
| 6394 | return; |
| 6395 | |
| 6396 | DOCTEST_LOCK_MUTEXcxx . . $ std/(mutex) |
| 6397 | |
| 6398 | logTestStartcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#logTestStart(49f6e7a06ebc5aa8).(); |
| 6399 | |
| 6400 | file_line_to_streamcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#file_line_to_stream(1e8c11a11d48e725).(mb.m_filecxx . . $ doctest/MessageData#m_file., mb.m_linecxx . . $ doctest/MessageData#m_line., " "); |
| 6401 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). getSuccessOrFailColorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#getSuccessOrFailColor(3e17a99ce469cc19).(false, mb.m_severitycxx . . $ doctest/MessageData#m_severity.) |
| 6402 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). getSuccessOrFailStringcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#getSuccessOrFailString(3de5e987f7145f0c).(mb.m_severitycxx . . $ doctest/MessageData#m_severity. & assertTypecxx . . $ doctest/assertType/::is_warncxx . . $ doctest/assertType/is_warn., mb.m_severitycxx . . $ doctest/MessageData#m_severity., |
| 6403 | "MESSAGE") <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ": "; |
| 6404 | scxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#s. <<cxx . . $ doctest/Color/`operator<<`(efdf952e4af211cd). Colorcxx . . $ doctest/Color/::Nonecxx . . $ doctest/Color/None. <<cxx . . $ doctest/`operator<<`(5bde827599dcb38d). mb.m_stringcxx . . $ doctest/MessageData#m_string. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 6405 | log_contextscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#log_contexts(49f6e7a06ebc5aa8).(); |
| 6406 | } |
| 6407 | |
| 6408 | void test_case_skippedcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/ConsoleReporter#test_case_skipped(e487234ff15ce620).(const TestCaseDatacxx . . $ doctest/TestCaseData#&) override {} |
| 6409 | }; |
| 6410 | |
| 6411 | DOCTEST_REGISTER_REPORTERcxx . . $ doctest/detail/("console", 0, ConsoleReporter); |
| 6412 | |
| 6413 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 6414 | struct DebugOutputWindowReporter : public ConsoleReporter |
| 6415 | { |
| 6416 | DOCTEST_THREAD_LOCAL static std::ostringstream oss; |
| 6417 | |
| 6418 | DebugOutputWindowReporter(const ContextOptions& co) |
| 6419 | : ConsoleReporter(co, oss) {} |
| 6420 | |
| 6421 | #define DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(func, type, arg) \ |
| 6422 | void func(type arg) override { \ |
| 6423 | bool with_col = g_no_colors; \ |
| 6424 | g_no_colors = false; \ |
| 6425 | ConsoleReporter::func(arg); \ |
| 6426 | if(oss.tellp() != std::streampos{}) { \ |
| 6427 | DOCTEST_OUTPUT_DEBUG_STRING(oss.str().c_str()); \ |
| 6428 | oss.str(""); \ |
| 6429 | } \ |
| 6430 | g_no_colors = with_col; \ |
| 6431 | } |
| 6432 | |
| 6433 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_run_start, DOCTEST_EMPTY, DOCTEST_EMPTY) |
| 6434 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_run_end, const TestRunStats&, in) |
| 6435 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_case_start, const TestCaseData&, in) |
| 6436 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_case_reenter, const TestCaseData&, in) |
| 6437 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_case_end, const CurrentTestCaseStats&, in) |
| 6438 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_case_exception, const TestCaseException&, in) |
| 6439 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(subcase_start, const SubcaseSignature&, in) |
| 6440 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(subcase_end, DOCTEST_EMPTY, DOCTEST_EMPTY) |
| 6441 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(log_assert, const AssertData&, in) |
| 6442 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(log_message, const MessageData&, in) |
| 6443 | DOCTEST_DEBUG_OUTPUT_REPORTER_OVERRIDE(test_case_skipped, const TestCaseData&, in) |
| 6444 | }; |
| 6445 | |
| 6446 | DOCTEST_THREAD_LOCAL std::ostringstream DebugOutputWindowReporter::oss; |
| 6447 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 6448 | |
| 6449 | // the implementation of parseOption() |
| 6450 | bool parseOptionImplcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOptionImpl(b3e7bc2d5c80474e).(int argc, const char* const* argv, const char* pattern, Stringcxx . . $ doctest/String#* value) { |
| 6451 | // going from the end to the beginning and stopping on the first occurrence from the end |
| 6452 | for(int i = argc; i > 0; --i) { |
| 6453 | auto index = i - 1; |
| 6454 | auto temp = stdcxx . . $ std/::strstr(argv[index], pattern); |
| 6455 | if(temp && (value || strlen(temp) == strlen(pattern))) { //!OCLINT prefer early exits and continue |
| 6456 | // eliminate matches in which the chars before the option are not '-' |
| 6457 | bool noBadCharsFound = true; |
| 6458 | auto curr = argv[index]; |
| 6459 | while(curr != temp) { |
| 6460 | if(*curr++ != '-') { |
| 6461 | noBadCharsFound = false; |
| 6462 | break; |
| 6463 | } |
| 6464 | } |
| 6465 | if(noBadCharsFound && argv[index][0] == '-') { |
| 6466 | if(value) { |
| 6467 | // parsing the value of an option |
| 6468 | temp += strlen(pattern); |
| 6469 | const unsigned len = strlen(temp); |
| 6470 | if(len) { |
| 6471 | *value =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). tempcxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 6472 | return true; |
| 6473 | } |
| 6474 | } else { |
| 6475 | // just a flag - no value |
| 6476 | return true; |
| 6477 | } |
| 6478 | } |
| 6479 | } |
| 6480 | } |
| 6481 | return false; |
| 6482 | } |
| 6483 | |
| 6484 | // parses an option and returns the string after the '=' character |
| 6485 | bool parseOptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOption(4ef7f32e31257740).(int argc, const char* const* argv, const char* pattern, Stringcxx . . $ doctest/String#* value = nullptr, |
| 6486 | const Stringcxx . . $ doctest/String#& defaultVal = Stringcxx . . $ doctest/String#()) { |
| 6487 | if(value) |
| 6488 | *value =cxx . . $ doctest/String#`operator=`(7a57cc89010f9d7e). defaultVal; |
| 6489 | #ifndef DOCTEST_CONFIG_NO_UNPREFIXED_OPTIONS |
| 6490 | // offset (normally 3 for "dt-") to skip prefix |
| 6491 | if(parseOptionImplcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOptionImpl(b3e7bc2d5c80474e).(argc, argv, pattern + strlen(DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`!), value)) |
| 6492 | return true; |
| 6493 | #endif // DOCTEST_CONFIG_NO_UNPREFIXED_OPTIONS |
| 6494 | return parseOptionImplcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOptionImpl(b3e7bc2d5c80474e).(argc, argv, pattern, value); |
| 6495 | } |
| 6496 | |
| 6497 | // locates a flag on the command line |
| 6498 | bool parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(int argc, const char* const* argv, const char* pattern) { |
| 6499 | return parseOptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOption(4ef7f32e31257740).(argc, argv, pattern); |
| 6500 | } |
| 6501 | |
| 6502 | // parses a comma separated list of words after a pattern in one of the arguments in argv |
| 6503 | bool parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(int argc, const char* const* argv, const char* pattern, |
| 6504 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<Stringcxx . . $ doctest/String#>& res) { |
| 6505 | Stringcxx . . $ doctest/String# filtersStringcxx . . $ doctest/String#String(ced63f7c635d850d).; |
| 6506 | if(parseOptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOption(4ef7f32e31257740).(argc, argv, pattern, &filtersString)) { |
| 6507 | // tokenize with "," as a separator, unless escaped with backslash |
| 6508 | stdcxx . . $ std/::ostringstreamcxx . . $ std/ostringstream# scxx . . $ std/__cxx11/basic_ostringstream#basic_ostringstream(49f6e7a06ebc5aa8).; |
| 6509 | auto flush = [&s, &res]() { |
| 6510 | auto string = s.strcxx . . $ std/__cxx11/basic_ostringstream#str(d33e1a6fd36255f7).(); |
| 6511 | if(string.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).() > 0) { |
| 6512 | res.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(stringcxx . . $ doctest/String#String(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 6513 | } |
| 6514 | s.strcxx . . $ std/__cxx11/basic_ostringstream#str(f82a3577bf86cf38).(""cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 6515 | }; |
| 6516 | |
| 6517 | bool seenBackslash = false; |
| 6518 | const char* current = filtersString.c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); |
| 6519 | const char* end = current + strlen(current); |
| 6520 | while(current != end) { |
| 6521 | char character = *current++; |
| 6522 | if(seenBackslash) { |
| 6523 | seenBackslash = false; |
| 6524 | if(character == ',' || character == '\\') { |
| 6525 | s.putcxx . . $ std/basic_ostream#put(b6a716d21eaeace5).(character); |
| 6526 | continue; |
| 6527 | } |
| 6528 | s.putcxx . . $ std/basic_ostream#put(b6a716d21eaeace5).('\\'); |
| 6529 | } |
| 6530 | if(character == '\\') { |
| 6531 | seenBackslash = true; |
| 6532 | } else if(character == ',') { |
| 6533 | flush(cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).$anonymous_type_3#`operator()`(83f5f38750778ac8).); |
| 6534 | } else { |
| 6535 | s.putcxx . . $ std/basic_ostream#put(b6a716d21eaeace5).(character); |
| 6536 | } |
| 6537 | } |
| 6538 | |
| 6539 | if(seenBackslash) { |
| 6540 | s.putcxx . . $ std/basic_ostream#put(b6a716d21eaeace5).('\\'); |
| 6541 | } |
| 6542 | flush(cxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).$anonymous_type_3#`operator()`(83f5f38750778ac8).); |
| 6543 | return true; |
| 6544 | } |
| 6545 | return false; |
| 6546 | } |
| 6547 | |
| 6548 | enum optionTypecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/optionType# |
| 6549 | { |
| 6550 | option_boolcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_bool., |
| 6551 | option_intcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_int. |
| 6552 | }; |
| 6553 | |
| 6554 | // parses an int/bool option from the command line |
| 6555 | bool parseIntOptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseIntOption(41ca1f4bc307a3ee).(int argc, const char* const* argv, const char* pattern, optionTypecxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/optionType# type, |
| 6556 | int& res) { |
| 6557 | Stringcxx . . $ doctest/String# parsedValuecxx . . $ doctest/String#String(ced63f7c635d850d).; |
| 6558 | if(!parseOptioncxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseOption(4ef7f32e31257740).(argc, argv, pattern, &parsedValue)) |
| 6559 | return false; |
| 6560 | |
| 6561 | if(type) { |
| 6562 | // integer |
| 6563 | // TODO: change this to use std::stoi or something else! currently it uses undefined behavior - assumes '0' on failed parse... |
| 6564 | int theInt = stdcxx . . $ std/::atoi(parsedValue.c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).()); |
| 6565 | if (theInt != 0) { |
| 6566 | res = theInt; //!OCLINT parameter reassignment |
| 6567 | return true; |
| 6568 | } |
| 6569 | } else { |
| 6570 | // boolean |
| 6571 | const char positive[][5] = { "1", "true", "on", "yes" }; // 5 - strlen("true") + 1 |
| 6572 | const char negative[][6] = { "0", "false", "off", "no" }; // 6 - strlen("false") + 1 |
| 6573 | |
| 6574 | // if the value matches any of the positive/negative possibilities |
| 6575 | for (unsigned i = 0; i < 4; i++) { |
| 6576 | if (parsedValue.comparecxx . . $ doctest/String#compare(cd33d590a1eff847).(positive[i], true) == 0) { |
| 6577 | res = 1; //!OCLINT parameter reassignment |
| 6578 | return true; |
| 6579 | } |
| 6580 | if (parsedValue.comparecxx . . $ doctest/String#compare(cd33d590a1eff847).(negative[i], true) == 0) { |
| 6581 | res = 0; //!OCLINT parameter reassignment |
| 6582 | return true; |
| 6583 | } |
| 6584 | } |
| 6585 | } |
| 6586 | return false; |
| 6587 | } |
| 6588 | } // namespace |
| 6589 | |
| 6590 | Contextcxx . . $ doctest/Context#::Contextcxx . . $ doctest/Context#Context(5151383285df94d8).(int argc, const char* const* argv) |
| 6591 | : pcxx . . $ doctest/Context#p.(new detailcxx . . $ doctest/detail/::ContextStatecxx . . $ doctest/detail/ContextState#) { |
| 6592 | parseArgscxx . . $ doctest/Context#parseArgs(af50656d8360ecdf).(argc, argv, true); |
| 6593 | if(argc) |
| 6594 | pcxx . . $ doctest/Context#p.->binary_namecxx . . $ doctest/ContextOptions#binary_name. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). argvcxx . . $ doctest/String#String(85c52e162fed56f9).[0]; |
| 6595 | } |
| 6596 | |
| 6597 | Contextcxx . . $ doctest/Context#::~cxx . . $ doctest/Context#`~Context`(ced63f7c635d850d).Contextcxx . . $ doctest/Context#() { |
| 6598 | if(g_cscxx . . $ doctest/detail/g_cs. == pcxx . . $ doctest/Context#p.) |
| 6599 | g_cscxx . . $ doctest/detail/g_cs. = nullptr; |
| 6600 | delete pcxx . . $ doctest/Context#p.; |
| 6601 | } |
| 6602 | |
| 6603 | void Contextcxx . . $ doctest/Context#::applyCommandLinecxx . . $ doctest/Context#applyCommandLine(5151383285df94d8).(int argc, const char* const* argv) { |
| 6604 | parseArgscxx . . $ doctest/Context#parseArgs(af50656d8360ecdf).(argc, argv); |
| 6605 | if(argc) |
| 6606 | pcxx . . $ doctest/Context#p.->binary_namecxx . . $ doctest/ContextOptions#binary_name. =cxx . . $ doctest/String#`operator=`(35ff499bf129e9c0). argvcxx . . $ doctest/String#String(85c52e162fed56f9).[0]; |
| 6607 | } |
| 6608 | |
| 6609 | // parses args |
| 6610 | void Contextcxx . . $ doctest/Context#::parseArgscxx . . $ doctest/Context#parseArgs(af50656d8360ecdf).(int argc, const char* const* argv, bool withDefaults) { |
| 6611 | using namespace detail; |
| 6612 | |
| 6613 | // clang-format off |
| 6614 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "source-file=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]); |
| 6615 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "sf=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]); |
| 6616 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "source-file-exclude=",pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]); |
| 6617 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "sfe=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]); |
| 6618 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "test-suite=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]); |
| 6619 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "ts=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]); |
| 6620 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "test-suite-exclude=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]); |
| 6621 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "tse=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]); |
| 6622 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "test-case=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]); |
| 6623 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "tc=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]); |
| 6624 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "test-case-exclude=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).5]); |
| 6625 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "tce=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).5]); |
| 6626 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "subcase=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).6]); |
| 6627 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "sc=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).6]); |
| 6628 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "subcase-exclude=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).7]); |
| 6629 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "sce=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).7]); |
| 6630 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "reporters=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).8]); |
| 6631 | parseCommaSepArgscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseCommaSepArgs(9aeebe69902d5a3a).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "r=", pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).8]); |
| 6632 | // clang-format on |
| 6633 | |
| 6634 | int intRes = 0; |
| 6635 | Stringcxx . . $ doctest/String# strRescxx . . $ doctest/String#String(ced63f7c635d850d).; |
| 6636 | |
| 6637 | #define DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ `tests/thirdparty/doctest/doctest.h:6637:9`!(name, sname, var, default) \ |
| 6638 | if(parseIntOption(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! name "=", option_bool, intRes) || \ |
| 6639 | parseIntOption(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! sname "=", option_bool, intRes)) \ |
| 6640 | p->var = static_cast<bool>(intRes); \ |
| 6641 | else if(parseFlag(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! name) || \ |
| 6642 | parseFlag(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! sname)) \ |
| 6643 | p->var = true; \ |
| 6644 | else if(withDefaults) \ |
| 6645 | p->var = default |
| 6646 | |
| 6647 | #define DOCTEST_PARSE_INT_OPTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:6647:9`!(name, sname, var, default) \ |
| 6648 | if(parseIntOption(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! name "=", option_int, intRes) || \ |
| 6649 | parseIntOption(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! sname "=", option_int, intRes)) \ |
| 6650 | p->var = intRes; \ |
| 6651 | else if(withDefaults) \ |
| 6652 | p->var = default |
| 6653 | |
| 6654 | #define DOCTEST_PARSE_STR_OPTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:6654:9`!(name, sname, var, default) \ |
| 6655 | if(parseOption(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! name "=", &strRes, default) || \ |
| 6656 | parseOption(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! sname "=", &strRes, default) || \ |
| 6657 | withDefaults) \ |
| 6658 | p->var = strRes |
| 6659 | |
| 6660 | // clang-format off |
| 6661 | DOCTEST_PARSE_STR_OPTIONcxx . . $ doctest/String#String(85c52e162fed56f9).("out", "o", out, ""); |
| 6662 | DOCTEST_PARSE_STR_OPTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:6654:9`!("order-by", "ob", order_by, "file"); |
| 6663 | DOCTEST_PARSE_INT_OPTIONcxx . . $ doctest/ContextOptions#rand_seed.("rand-seed", "rs", rand_seed, 0); |
| 6664 | |
| 6665 | DOCTEST_PARSE_INT_OPTIONcxx . . $ doctest/ContextOptions#first.("first", "f", first, 0); |
| 6666 | DOCTEST_PARSE_INT_OPTIONcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_int.("last", "l", last, UINT_MAXcxx . . $ `<external>/67164224788392828/limits.h:124:9`!); |
| 6667 | |
| 6668 | DOCTEST_PARSE_INT_OPTIONcxx . . $ doctest/ContextOptions#abort_after.("abort-after", "aa", abort_after, 0); |
| 6669 | DOCTEST_PARSE_INT_OPTIONcxx . . $ `tests/thirdparty/doctest/doctest.h:6647:9`!("subcase-filter-levels", "scfl", subcase_filter_levels, INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!); |
| 6670 | |
| 6671 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/Context#p.("success", "s", success, false); |
| 6672 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/ContextOptions#case_sensitive.("case-sensitive", "cs", case_sensitive, false); |
| 6673 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseIntOption(41ca1f4bc307a3ee).("exit", "e", exit, false); |
| 6674 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).("duration", "d", duration, false); |
| 6675 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_bool.("minimal", "m", minimal, false); |
| 6676 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).("quiet", "q", quiet, false); |
| 6677 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseIntOption(41ca1f4bc307a3ee).("no-throw", "nt", no_throw, false); |
| 6678 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_bool.("no-exitcode", "ne", no_exitcode, false); |
| 6679 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseIntOption(41ca1f4bc307a3ee).("no-run", "nr", no_run, false); |
| 6680 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_bool.("no-intro", "ni", no_intro, false); |
| 6681 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/ContextOptions#no_version.("no-version", "nv", no_version, false); |
| 6682 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/Context#p.("no-colors", "nc", no_colors, false); |
| 6683 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ `tests/thirdparty/doctest/doctest.h:6637:9`!("force-colors", "fc", force_colors, false); |
| 6684 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ `tests/thirdparty/doctest/doctest.h:6637:9`!("no-breaks", "nb", no_breaks, false); |
| 6685 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_bool.("no-skip", "ns", no_skip, false); |
| 6686 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/Context#p.("gnu-file-line", "gfl", gnu_file_line, !bool(DOCTEST_MSVCcxx . . $ `tests/thirdparty/doctest/doctest.h:99:9`!)); |
| 6687 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).("no-path-filenames", "npf", no_path_in_filenames, false); |
| 6688 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/option_bool.("no-line-numbers", "nln", no_line_numbers, false); |
| 6689 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).("no-debug-output", "ndo", no_debug_output, false); |
| 6690 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ `tests/thirdparty/doctest/doctest.h:6637:9`!("no-skipped-summary", "nss", no_skipped_summary, false); |
| 6691 | DOCTEST_PARSE_AS_BOOL_OR_FLAGcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).("no-time-in-output", "ntio", no_time_in_output, false); |
| 6692 | // clang-format on |
| 6693 | |
| 6694 | if(withDefaults) { |
| 6695 | pcxx . . $ doctest/Context#p.->helpcxx . . $ doctest/ContextOptions#help. = false; |
| 6696 | pcxx . . $ doctest/Context#p.->versioncxx . . $ doctest/ContextOptions#version. = false; |
| 6697 | pcxx . . $ doctest/Context#p.->countcxx . . $ doctest/ContextOptions#count. = false; |
| 6698 | pcxx . . $ doctest/Context#p.->list_test_casescxx . . $ doctest/ContextOptions#list_test_cases. = false; |
| 6699 | pcxx . . $ doctest/Context#p.->list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites. = false; |
| 6700 | pcxx . . $ doctest/Context#p.->list_reporterscxx . . $ doctest/ContextOptions#list_reporters. = false; |
| 6701 | } |
| 6702 | if(parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "help") || |
| 6703 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "h") || |
| 6704 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "?")) { |
| 6705 | pcxx . . $ doctest/Context#p.->helpcxx . . $ doctest/ContextOptions#help. = true; |
| 6706 | pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit. = true; |
| 6707 | } |
| 6708 | if(parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "version") || |
| 6709 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "v")) { |
| 6710 | pcxx . . $ doctest/Context#p.->versioncxx . . $ doctest/ContextOptions#version. = true; |
| 6711 | pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit. = true; |
| 6712 | } |
| 6713 | if(parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "count") || |
| 6714 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "c")) { |
| 6715 | pcxx . . $ doctest/Context#p.->countcxx . . $ doctest/ContextOptions#count. = true; |
| 6716 | pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit. = true; |
| 6717 | } |
| 6718 | if(parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "list-test-cases") || |
| 6719 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "ltc")) { |
| 6720 | pcxx . . $ doctest/Context#p.->list_test_casescxx . . $ doctest/ContextOptions#list_test_cases. = true; |
| 6721 | pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit. = true; |
| 6722 | } |
| 6723 | if(parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "list-test-suites") || |
| 6724 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "lts")) { |
| 6725 | pcxx . . $ doctest/Context#p.->list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites. = true; |
| 6726 | pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit. = true; |
| 6727 | } |
| 6728 | if(parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "list-reporters") || |
| 6729 | parseFlagcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/parseFlag(80f3ea31bbd50b20).(argc, argv, DOCTEST_CONFIG_OPTIONS_PREFIXcxx . . $ `tests/thirdparty/doctest/doctest.h:3243:9`! "lr")) { |
| 6730 | pcxx . . $ doctest/Context#p.->list_reporterscxx . . $ doctest/ContextOptions#list_reporters. = true; |
| 6731 | pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit. = true; |
| 6732 | } |
| 6733 | } |
| 6734 | |
| 6735 | // allows the user to add procedurally to the filters from the command line |
| 6736 | void Contextcxx . . $ doctest/Context#::addFiltercxx . . $ doctest/Context#addFilter(2fa786934fe80e24).(const char* filter, const char* value) { setOptioncxx . . $ doctest/Context#setOption(2fa786934fe80e24).(filter, value); } |
| 6737 | |
| 6738 | // allows the user to clear all filters from the command line |
| 6739 | void Contextcxx . . $ doctest/Context#::clearFilterscxx . . $ doctest/Context#clearFilters(49f6e7a06ebc5aa8).() { |
| 6740 | for(auto& curr : pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.) |
| 6741 | curr.clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 6742 | } |
| 6743 | |
| 6744 | // allows the user to override procedurally the bool options from the command line |
| 6745 | void Contextcxx . . $ doctest/Context#::setOptioncxx . . $ doctest/Context#setOption(90ef5b561fbcb8de).(const char* option, bool value) { |
| 6746 | setOptioncxx . . $ doctest/Context#setOption(2fa786934fe80e24).(option, value ? "true" : "false"); |
| 6747 | } |
| 6748 | |
| 6749 | // allows the user to override procedurally the int options from the command line |
| 6750 | void Contextcxx . . $ doctest/Context#::setOptioncxx . . $ doctest/Context#setOption(34d26762b42c433a).(const char* option, int value) { |
| 6751 | setOptioncxx . . $ doctest/Context#setOption(2fa786934fe80e24).(option, toStringcxx . . $ doctest/toString(42cd9c6e4f826fde).(value).c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).()); |
| 6752 | } |
| 6753 | |
| 6754 | // allows the user to override procedurally the string options from the command line |
| 6755 | void Contextcxx . . $ doctest/Context#::setOptioncxx . . $ doctest/Context#setOption(2fa786934fe80e24).(const char* option, const char* value) { |
| 6756 | auto argv = Stringcxx . . $ doctest/String#String(85c52e162fed56f9).("-") +cxx . . $ doctest/operator+(670c5a04c572f3f0). optioncxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). "="cxx . . $ doctest/String#String(85c52e162fed56f9). +cxx . . $ doctest/operator+(670c5a04c572f3f0). valuecxx . . $ doctest/String#String(85c52e162fed56f9).; |
| 6757 | auto lvalue = argv.c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(); |
| 6758 | parseArgscxx . . $ doctest/Context#parseArgs(af50656d8360ecdf).(1, &lvalue); |
| 6759 | } |
| 6760 | |
| 6761 | // users should query this in their main() and exit the program if true |
| 6762 | bool Contextcxx . . $ doctest/Context#::shouldExitcxx . . $ doctest/Context#shouldExit(c9857a73d68e59ba).() { return pcxx . . $ doctest/Context#p.->exitcxx . . $ doctest/ContextOptions#exit.; } |
| 6763 | |
| 6764 | void Contextcxx . . $ doctest/Context#::setAsDefaultForAssertsOutOfTestCasescxx . . $ doctest/Context#setAsDefaultForAssertsOutOfTestCases(49f6e7a06ebc5aa8).() { g_cscxx . . $ doctest/detail/g_cs. = pcxx . . $ doctest/Context#p.; } |
| 6765 | |
| 6766 | void Contextcxx . . $ doctest/Context#::setAssertHandlercxx . . $ doctest/Context#setAssertHandler(ece0fda6f1522492).(detailcxx . . $ doctest/detail/::assert_handlercxx . . $ doctest/detail/assert_handler# ah) { pcxx . . $ doctest/Context#p.->ahcxx . . $ doctest/detail/ContextState#ah. = ah; } |
| 6767 | |
| 6768 | void Contextcxx . . $ doctest/Context#::setCoutcxx . . $ doctest/Context#setCout(5d3481b062d90072).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#* out) { pcxx . . $ doctest/Context#p.->coutcxx . . $ doctest/ContextOptions#cout. = out; } |
| 6769 | |
| 6770 | static class DiscardOStreamcxx . . $ doctest/DiscardOStream# : public stdcxx . . $ std/::ostreamcxx . . $ std/ostream# |
| 6771 | { |
| 6772 | private: |
| 6773 | classcxx . . $ doctest/DiscardOStream#$anonymous_type_4# : public stdcxx . . $ std/::streambufcxx . . $ std/streambuf# |
| 6774 | { |
| 6775 | private: |
| 6776 | // allowing some buffering decreases the amount of calls to overflow |
| 6777 | char bufcxx . . $ doctest/DiscardOStream#$anonymous_type_4#buf.[1024]; |
| 6778 | |
| 6779 | protected: |
| 6780 | stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# xsputncxx . . $ doctest/DiscardOStream#$anonymous_type_4#xsputn(730d9b36f6411b7f).(const char_typecxx . . $ std/basic_streambuf#char_type#*, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# count) override { return count; } |
| 6781 | |
| 6782 | int_typecxx . . $ std/basic_streambuf#int_type# overflowcxx . . $ doctest/DiscardOStream#$anonymous_type_4#overflow(7864480464b09eea).(int_typecxx . . $ std/basic_streambuf#int_type# ch) override { |
| 6783 | setpcxx . . $ std/basic_streambuf#setp(80e3bfca93a78d58).(stdcxx . . $ std/::begincxx . . $ std/begin(b20f4ecd39bddd20).(bufcxx . . $ doctest/DiscardOStream#$anonymous_type_4#buf.), stdcxx . . $ std/::endcxx . . $ std/end(b20f4ecd39bddd20).(bufcxx . . $ doctest/DiscardOStream#$anonymous_type_4#buf.)); |
| 6784 | return traits_typecxx . . $ std/basic_streambuf#traits_type#::not_eofcxx . . $ std/char_traits#not_eof(dd4ae1df0539c164).(ch); |
| 6785 | } |
| 6786 | } discardBufcxx . . $ doctest/DiscardOStream#discardBuf.; |
| 6787 | |
| 6788 | public: |
| 6789 | DiscardOStreamcxx . . $ doctest/DiscardOStream#DiscardOStream(49f6e7a06ebc5aa8).() |
| 6790 | : stdcxx . . $ std/::ostreamcxx . . $ std/ostream#(&discardBufcxx . . $ doctest/DiscardOStream#discardBuf.) {} |
| 6791 | } discardOutcxx . . $ doctest/discardOut.; |
| 6792 | |
| 6793 | // the main function that does all the filtering and test running |
| 6794 | int Contextcxx . . $ doctest/Context#::runcxx . . $ doctest/Context#run(b126dc7c1de90089).() { |
| 6795 | using namespace detail; |
| 6796 | |
| 6797 | // save the old context state in case such was setup - for using asserts out of a testing context |
| 6798 | auto old_cs = g_cscxx . . $ doctest/detail/g_cs.; |
| 6799 | // this is the current contest |
| 6800 | g_cscxx . . $ doctest/detail/g_cs. = pcxx . . $ doctest/Context#p.; |
| 6801 | is_running_in_testcxx . . $ doctest/is_running_in_test. = true; |
| 6802 | |
| 6803 | g_no_colorscxx . . $ doctest/detail/g_no_colors. = pcxx . . $ doctest/Context#p.->no_colorscxx . . $ doctest/ContextOptions#no_colors.; |
| 6804 | pcxx . . $ doctest/Context#p.->resetRunDatacxx . . $ doctest/detail/ContextState#resetRunData(49f6e7a06ebc5aa8).(); |
| 6805 | |
| 6806 | stdcxx . . $ std/::fstreamcxx . . $ std/fstream# fstrcxx . . $ std/basic_fstream#basic_fstream(49f6e7a06ebc5aa8).; |
| 6807 | if(pcxx . . $ doctest/Context#p.->coutcxx . . $ doctest/ContextOptions#cout. == nullptr) { |
| 6808 | if(pcxx . . $ doctest/Context#p.->quietcxx . . $ doctest/ContextOptions#quiet.) { |
| 6809 | pcxx . . $ doctest/Context#p.->coutcxx . . $ doctest/ContextOptions#cout. = &discardOutcxx . . $ doctest/discardOut.; |
| 6810 | } else if(pcxx . . $ doctest/Context#p.->outcxx . . $ doctest/ContextOptions#out..sizecxx . . $ doctest/String#size(ddd8539a2fcdd4ce).()) { |
| 6811 | // to a file if specified |
| 6812 | fstr.opencxx . . $ std/basic_fstream#open(b8cd37071ce335df).(pcxx . . $ doctest/Context#p.->outcxx . . $ doctest/ContextOptions#out..c_strcxx . . $ doctest/String#c_str(41208ce6ca65dd58).(), stdcxx . . $ std/::fstreamcxx . . $ std/fstream#::outcxx . . $ std/ios_base#out.); |
| 6813 | pcxx . . $ doctest/Context#p.->coutcxx . . $ doctest/ContextOptions#cout. = &fstr; |
| 6814 | } else { |
| 6815 | #ifndef DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 6816 | // stdout by default |
| 6817 | pcxx . . $ doctest/Context#p.->coutcxx . . $ doctest/ContextOptions#cout. = &stdcxx . . $ std/::coutcxx . . $ std/cout.; |
| 6818 | #else // DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 6819 | return EXIT_FAILURE; |
| 6820 | #endif // DOCTEST_CONFIG_NO_INCLUDE_IOSTREAM |
| 6821 | } |
| 6822 | } |
| 6823 | |
| 6824 | FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::allocateAltStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#allocateAltStackMem(49f6e7a06ebc5aa8).(); |
| 6825 | |
| 6826 | auto cleanup_and_return = [&]() { |
| 6827 | FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#::freeAltStackMemcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#freeAltStackMem(49f6e7a06ebc5aa8).(); |
| 6828 | |
| 6829 | if(fstr.is_opencxx . . $ std/basic_fstream#is_open(c9857a73d68e59ba).()) |
| 6830 | fstr.closecxx . . $ std/basic_fstream#close(49f6e7a06ebc5aa8).(); |
| 6831 | |
| 6832 | // restore context |
| 6833 | g_cscxx . . $ doctest/detail/g_cs. = old_cs; |
| 6834 | is_running_in_testcxx . . $ doctest/is_running_in_test. = false; |
| 6835 | |
| 6836 | // we have to free the reporters which were allocated when the run started |
| 6837 | for(auto& curr : pcxx . . $ doctest/Context#p.->reporters_currently_usedcxx . . $ doctest/detail/ContextState#reporters_currently_used.) |
| 6838 | delete curr; |
| 6839 | pcxx . . $ doctest/Context#p.->reporters_currently_usedcxx . . $ doctest/detail/ContextState#reporters_currently_used..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 6840 | |
| 6841 | if(pcxx . . $ doctest/Context#p.->numTestCasesFailedcxx . . $ doctest/TestRunStats#numTestCasesFailed. && !pcxx . . $ doctest/Context#p.->no_exitcodecxx . . $ doctest/ContextOptions#no_exitcode.) |
| 6842 | return EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!; |
| 6843 | return EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!; |
| 6844 | }; |
| 6845 | |
| 6846 | // setup default reporter if none is given through the command line |
| 6847 | if(pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).8].emptycxx . . $ std/vector#empty(3482b152b9333168).()) |
| 6848 | pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).8].push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).("console"cxx . . $ doctest/String#String(85c52e162fed56f9).); |
| 6849 | |
| 6850 | // check to see if any of the registered reporters has been selected |
| 6851 | for(auto& curr : getReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getReporters(be1c6a749067b56).()) { |
| 6852 | if(matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(curr.first.second.c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).8], false, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6853 | pcxx . . $ doctest/Context#p.->reporters_currently_usedcxx . . $ doctest/detail/ContextState#reporters_currently_used..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(curr.second(*g_cscxx . . $ doctest/detail/g_cs.)); |
| 6854 | } |
| 6855 | |
| 6856 | // TODO: check if there is nothing in reporters_currently_used |
| 6857 | |
| 6858 | // prepend all listeners |
| 6859 | for(auto& curr : getListenerscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getListeners(be1c6a749067b56).()) |
| 6860 | pcxx . . $ doctest/Context#p.->reporters_currently_usedcxx . . $ doctest/detail/ContextState#reporters_currently_used..insertcxx . . $ std/vector#insert(d9a51c9ec3a8b22).(pcxx . . $ doctest/Context#p.->reporters_currently_usedcxx . . $ doctest/detail/ContextState#reporters_currently_used..begincxx . . $ std/vector#begin(55a6de06420d4903).(), curr.second(*g_cscxx . . $ doctest/detail/g_cs.)); |
| 6861 | |
| 6862 | #ifdef DOCTEST_PLATFORM_WINDOWS |
| 6863 | if(isDebuggerActive() && p->no_debug_output == false) |
| 6864 | p->reporters_currently_used.push_back(new DebugOutputWindowReporter(*g_cs)); |
| 6865 | #endif // DOCTEST_PLATFORM_WINDOWS |
| 6866 | |
| 6867 | // handle version, help and no_run |
| 6868 | if(pcxx . . $ doctest/Context#p.->no_runcxx . . $ doctest/ContextOptions#no_run. || pcxx . . $ doctest/Context#p.->versioncxx . . $ doctest/ContextOptions#version. || pcxx . . $ doctest/Context#p.->helpcxx . . $ doctest/ContextOptions#help. || pcxx . . $ doctest/Context#p.->list_reporterscxx . . $ doctest/ContextOptions#list_reporters.) { |
| 6869 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/g_cs.(report_query, QueryData()); |
| 6870 | |
| 6871 | return cleanup_and_return(cxx . . $ doctest/Context#run(b126dc7c1de90089).$anonymous_type_5#`operator()`(455f465bc33b4cdf).); |
| 6872 | } |
| 6873 | |
| 6874 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<const TestCasecxx . . $ doctest/detail/TestCase#*> testArraycxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 6875 | for(auto& curr : getRegisteredTestscxx . . $ doctest/detail/getRegisteredTests(319491a013046689).()) |
| 6876 | testArray.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(&curr); |
| 6877 | pcxx . . $ doctest/Context#p.->numTestCasescxx . . $ doctest/TestRunStats#numTestCases. = testArray.sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); |
| 6878 | |
| 6879 | // sort the collected records |
| 6880 | if(!testArray.emptycxx . . $ std/vector#empty(3482b152b9333168).()) { |
| 6881 | if(pcxx . . $ doctest/Context#p.->order_bycxx . . $ doctest/ContextOptions#order_by..comparecxx . . $ doctest/String#compare(cd33d590a1eff847).("file", true) == 0) { |
| 6882 | stdcxx . . $ std/::sortcxx . . $ std/sort(4d3091562df4e52e).(testArray.begincxx . . $ std/vector#begin(55a6de06420d4903).(), testArray.endcxx . . $ std/vector#end(55a6de06420d4903).(), fileOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/fileOrderComparator(740b7726f3279b6d).); |
| 6883 | } else if(pcxx . . $ doctest/Context#p.->order_bycxx . . $ doctest/ContextOptions#order_by..comparecxx . . $ doctest/String#compare(cd33d590a1eff847).("suite", true) == 0) { |
| 6884 | stdcxx . . $ std/::sortcxx . . $ std/sort(4d3091562df4e52e).(testArray.begincxx . . $ std/vector#begin(55a6de06420d4903).(), testArray.endcxx . . $ std/vector#end(55a6de06420d4903).(), suiteOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/suiteOrderComparator(740b7726f3279b6d).); |
| 6885 | } else if(pcxx . . $ doctest/Context#p.->order_bycxx . . $ doctest/ContextOptions#order_by..comparecxx . . $ doctest/String#compare(cd33d590a1eff847).("name", true) == 0) { |
| 6886 | stdcxx . . $ std/::sortcxx . . $ std/sort(4d3091562df4e52e).(testArray.begincxx . . $ std/vector#begin(55a6de06420d4903).(), testArray.endcxx . . $ std/vector#end(55a6de06420d4903).(), nameOrderComparatorcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/nameOrderComparator(740b7726f3279b6d).); |
| 6887 | } else if(pcxx . . $ doctest/Context#p.->order_bycxx . . $ doctest/ContextOptions#order_by..comparecxx . . $ doctest/String#compare(cd33d590a1eff847).("rand", true) == 0) { |
| 6888 | stdcxx . . $ std/::srand(pcxx . . $ doctest/Context#p.->rand_seedcxx . . $ doctest/ContextOptions#rand_seed.); |
| 6889 | |
| 6890 | // random_shuffle implementation |
| 6891 | const auto first = &testArray[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]; |
| 6892 | for(size_tcxx . . $ doctest/size_t# i = testArray.sizecxx . . $ std/vector#size(c9b1e749b64d5edc).() - 1; i > 0; --i) { |
| 6893 | int idxToSwap = stdcxx . . $ std/::rand() % (i + 1); |
| 6894 | |
| 6895 | const auto temp = first[i]; |
| 6896 | |
| 6897 | first[i] = first[idxToSwap]; |
| 6898 | first[idxToSwap] = temp; |
| 6899 | } |
| 6900 | } else if(pcxx . . $ doctest/Context#p.->order_bycxx . . $ doctest/ContextOptions#order_by..comparecxx . . $ doctest/String#compare(cd33d590a1eff847).("none", true) == 0) { |
| 6901 | // means no sorting - beneficial for death tests which call into the executable |
| 6902 | // with a specific test case in mind - we don't want to slow down the startup times |
| 6903 | } |
| 6904 | } |
| 6905 | |
| 6906 | stdcxx . . $ std/::setcxx . . $ std/set#<Stringcxx . . $ doctest/String#> testSuitesPassingFiltcxx . . $ std/set#set(49f6e7a06ebc5aa8).; |
| 6907 | |
| 6908 | bool query_mode = pcxx . . $ doctest/Context#p.->countcxx . . $ doctest/ContextOptions#count. || pcxx . . $ doctest/Context#p.->list_test_casescxx . . $ doctest/ContextOptions#list_test_cases. || pcxx . . $ doctest/Context#p.->list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites.; |
| 6909 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<const TestCaseDatacxx . . $ doctest/TestCaseData#*> queryResultscxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 6910 | |
| 6911 | if(!query_mode) |
| 6912 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(test_run_start, DOCTEST_EMPTYcxx . . $ `tests/thirdparty/doctest/doctest.h:347:9`!); |
| 6913 | |
| 6914 | // invoke the registered functions if they match the filter criteria (or just count them) |
| 6915 | for(auto& curr : testArray) { |
| 6916 | const auto& tc = *curr; |
| 6917 | |
| 6918 | bool skip_me = false; |
| 6919 | if(tc.m_skipcxx . . $ doctest/TestCaseData#m_skip. && !pcxx . . $ doctest/Context#p.->no_skipcxx . . $ doctest/ContextOptions#no_skip.) |
| 6920 | skip_me = true; |
| 6921 | |
| 6922 | if(!matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(tc.m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0], true, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6923 | skip_me = true; |
| 6924 | if(matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(tc.m_filecxx . . $ doctest/TestCaseData#m_file..c_strcxx . . $ doctest/String#c_str(a9f41ea0e82d88cf).(), pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1], false, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6925 | skip_me = true; |
| 6926 | if(!matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(tc.m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite., pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2], true, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6927 | skip_me = true; |
| 6928 | if(matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(tc.m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite., pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3], false, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6929 | skip_me = true; |
| 6930 | if(!matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(tc.m_namecxx . . $ doctest/TestCaseData#m_name., pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4], true, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6931 | skip_me = true; |
| 6932 | if(matchesAnycxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/matchesAny(546f627272fa7056).(tc.m_namecxx . . $ doctest/TestCaseData#m_name., pcxx . . $ doctest/Context#p.->filterscxx . . $ doctest/detail/ContextState#filters.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).5], false, pcxx . . $ doctest/Context#p.->case_sensitivecxx . . $ doctest/ContextOptions#case_sensitive.)) |
| 6933 | skip_me = true; |
| 6934 | |
| 6935 | if(!skip_me) |
| 6936 | pcxx . . $ doctest/Context#p.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.++; |
| 6937 | |
| 6938 | // skip the test if it is not in the execution range |
| 6939 | if((pcxx . . $ doctest/Context#p.->lastcxx . . $ doctest/ContextOptions#last. < pcxx . . $ doctest/Context#p.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters. && pcxx . . $ doctest/Context#p.->firstcxx . . $ doctest/ContextOptions#first. <= pcxx . . $ doctest/Context#p.->lastcxx . . $ doctest/ContextOptions#last.) || |
| 6940 | (pcxx . . $ doctest/Context#p.->firstcxx . . $ doctest/ContextOptions#first. > pcxx . . $ doctest/Context#p.->numTestCasesPassingFilterscxx . . $ doctest/TestRunStats#numTestCasesPassingFilters.)) |
| 6941 | skip_me = true; |
| 6942 | |
| 6943 | if(skip_me) { |
| 6944 | if(!query_mode) |
| 6945 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(test_case_skipped, tc); |
| 6946 | continue; |
| 6947 | } |
| 6948 | |
| 6949 | // do not execute the test if we are to only count the number of filter passing tests |
| 6950 | if(pcxx . . $ doctest/Context#p.->countcxx . . $ doctest/ContextOptions#count.) |
| 6951 | continue; |
| 6952 | |
| 6953 | // print the name of the test and don't execute it |
| 6954 | if(pcxx . . $ doctest/Context#p.->list_test_casescxx . . $ doctest/ContextOptions#list_test_cases.) { |
| 6955 | queryResults.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(&tc); |
| 6956 | continue; |
| 6957 | } |
| 6958 | |
| 6959 | // print the name of the test suite if not done already and don't execute it |
| 6960 | if(pcxx . . $ doctest/Context#p.->list_test_suitescxx . . $ doctest/ContextOptions#list_test_suites.) { |
| 6961 | if((testSuitesPassingFilt.countcxx . . $ std/set#count(a9c5b6ffd713dfa6).(tccxx . . $ doctest/String#String(85c52e162fed56f9)..m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.) == 0) && tc.m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.[0] != '\0') { |
| 6962 | queryResults.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(&tc); |
| 6963 | testSuitesPassingFilt.insertcxx . . $ std/set#insert(10916b2dbd511ba8).(tccxx . . $ doctest/String#String(85c52e162fed56f9)..m_test_suitecxx . . $ doctest/TestCaseData#m_test_suite.); |
| 6964 | pcxx . . $ doctest/Context#p.->numTestSuitesPassingFilterscxx . . $ doctest/TestRunStats#numTestSuitesPassingFilters.++; |
| 6965 | } |
| 6966 | continue; |
| 6967 | } |
| 6968 | |
| 6969 | // execute the test if it passes all the filtering |
| 6970 | { |
| 6971 | pcxx . . $ doctest/Context#p.->currentTestcxx . . $ doctest/ContextOptions#currentTest. = &tc; |
| 6972 | |
| 6973 | pcxx . . $ doctest/Context#p.->failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. = TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::Nonecxx . . $ doctest/TestCaseFailureReason/None.; |
| 6974 | pcxx . . $ doctest/Context#p.->secondscxx . . $ doctest/CurrentTestCaseStats#seconds. = 0; |
| 6975 | |
| 6976 | // reset atomic counters |
| 6977 | pcxx . . $ doctest/Context#p.->numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic. =cxx . . $ doctest/detail/MultiLaneAtomic#`operator=`(73de6b30e1938209). 0; |
| 6978 | pcxx . . $ doctest/Context#p.->numAssertsCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsCurrentTest_atomic. =cxx . . $ doctest/detail/MultiLaneAtomic#`operator=`(73de6b30e1938209). 0; |
| 6979 | |
| 6980 | pcxx . . $ doctest/Context#p.->fullyTraversedSubcasescxx . . $ doctest/detail/ContextState#fullyTraversedSubcases..clearcxx . . $ std/unordered_set#clear(ced63f7c635d850d).(); |
| 6981 | |
| 6982 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(test_case_start, tc); |
| 6983 | |
| 6984 | pcxx . . $ doctest/Context#p.->timercxx . . $ doctest/detail/ContextState#timer..startcxx . . $ doctest/detail/Timer#start(49f6e7a06ebc5aa8).(); |
| 6985 | |
| 6986 | bool run_test = true; |
| 6987 | |
| 6988 | do { |
| 6989 | // reset some of the fields for subcases (except for the set of fully passed ones) |
| 6990 | pcxx . . $ doctest/Context#p.->reachedLeafcxx . . $ doctest/detail/ContextState#reachedLeaf. = false; |
| 6991 | // May not be empty if previous subcase exited via exception. |
| 6992 | pcxx . . $ doctest/Context#p.->subcaseStackcxx . . $ doctest/detail/ContextState#subcaseStack..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 6993 | pcxx . . $ doctest/Context#p.->currentSubcaseDepthcxx . . $ doctest/detail/ContextState#currentSubcaseDepth. = 0; |
| 6994 | |
| 6995 | pcxx . . $ doctest/Context#p.->shouldLogCurrentExceptioncxx . . $ doctest/detail/ContextState#shouldLogCurrentException. =cxx . . $ std/atomic#`operator=`(4264aff4942d46ac). true; |
| 6996 | |
| 6997 | // reset stuff for logging with INFO() |
| 6998 | pcxx . . $ doctest/Context#p.->stringifiedContextscxx . . $ doctest/detail/ContextState#stringifiedContexts..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 6999 | |
| 7000 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 7001 | try { |
| 7002 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 7003 | // MSVC 2015 diagnoses fatalConditionHandler as unused (because reset() is a static method) |
| 7004 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4101) // unreferenced local variable |
| 7005 | FatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler# fatalConditionHandlercxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#FatalConditionHandler(49f6e7a06ebc5aa8).; // Handle signals |
| 7006 | // execute the test |
| 7007 | tc.m_testcxx . . $ doctest/detail/TestCase#m_test.(); |
| 7008 | fatalConditionHandler.resetcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/FatalConditionHandler#reset(49f6e7a06ebc5aa8).(); |
| 7009 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 7010 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 7011 | } catch(const TestFailureExceptioncxx . . $ doctest/detail/TestFailureException#&) { |
| 7012 | pcxx . . $ doctest/Context#p.->failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::AssertFailurecxx . . $ doctest/TestCaseFailureReason/AssertFailure.; |
| 7013 | } catch(...) { |
| 7014 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/translateActiveException(352b1a6751d00680).(test_case_exception, |
| 7015 | {translateActiveException(), false}); |
| 7016 | pcxx . . $ doctest/Context#p.->failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::Exceptioncxx . . $ doctest/TestCaseFailureReason/Exception.; |
| 7017 | } |
| 7018 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 7019 | |
| 7020 | // exit this loop if enough assertions have failed - even if there are more subcases |
| 7021 | if(pcxx . . $ doctest/Context#p.->abort_aftercxx . . $ doctest/ContextOptions#abort_after. > 0 && |
| 7022 | pcxx . . $ doctest/Context#p.->numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. + pcxx . . $ doctest/Context#p.->numAssertsFailedCurrentTest_atomiccxx . . $ doctest/detail/ContextState#numAssertsFailedCurrentTest_atomic. >= pcxx . . $ doctest/Context#p.->abort_aftercxx . . $ doctest/ContextOptions#abort_after.) { |
| 7023 | run_test = false; |
| 7024 | pcxx . . $ doctest/Context#p.->failure_flagscxx . . $ doctest/CurrentTestCaseStats#failure_flags. |= TestCaseFailureReasoncxx . . $ doctest/TestCaseFailureReason/::TooManyFailedAssertscxx . . $ doctest/TestCaseFailureReason/TooManyFailedAsserts.; |
| 7025 | } |
| 7026 | |
| 7027 | if(!pcxx . . $ doctest/Context#p.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..emptycxx . . $ std/vector#empty(3482b152b9333168).() && run_test) |
| 7028 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(test_case_reenter, tc); |
| 7029 | if(pcxx . . $ doctest/Context#p.->nextSubcaseStackcxx . . $ doctest/detail/ContextState#nextSubcaseStack..emptycxx . . $ std/vector#empty(3482b152b9333168).()) |
| 7030 | run_test = false; |
| 7031 | } while(run_test); |
| 7032 | |
| 7033 | pcxx . . $ doctest/Context#p.->finalizeTestCaseDatacxx . . $ doctest/detail/ContextState#finalizeTestCaseData(49f6e7a06ebc5aa8).(); |
| 7034 | |
| 7035 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ doctest/detail/ContextState#reporters_currently_used.(test_case_end, *g_cs); |
| 7036 | |
| 7037 | pcxx . . $ doctest/Context#p.->currentTestcxx . . $ doctest/ContextOptions#currentTest. = nullptr; |
| 7038 | |
| 7039 | // stop executing tests if enough assertions have failed |
| 7040 | if(pcxx . . $ doctest/Context#p.->abort_aftercxx . . $ doctest/ContextOptions#abort_after. > 0 && pcxx . . $ doctest/Context#p.->numAssertsFailedcxx . . $ doctest/TestRunStats#numAssertsFailed. >= pcxx . . $ doctest/Context#p.->abort_aftercxx . . $ doctest/ContextOptions#abort_after.) |
| 7041 | break; |
| 7042 | } |
| 7043 | } |
| 7044 | |
| 7045 | if(!query_mode) { |
| 7046 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(test_run_end, *g_cs); |
| 7047 | } else { |
| 7048 | QueryDatacxx . . $ doctest/QueryData# qdata; |
| 7049 | qdata.run_statscxx . . $ doctest/QueryData#run_stats. = g_cscxx . . $ doctest/detail/g_cs.; |
| 7050 | qdata.datacxx . . $ doctest/QueryData#data. = queryResults.datacxx . . $ std/vector#data(258ee1c9e0a18a5c).(); |
| 7051 | qdata.num_datacxx . . $ doctest/QueryData#num_data. = unsigned(queryResults.sizecxx . . $ std/vector#size(c9b1e749b64d5edc).()); |
| 7052 | DOCTEST_ITERATE_THROUGH_REPORTERScxx . . $ `tests/thirdparty/doctest/doctest.h:4082:9`!(report_query, qdata); |
| 7053 | } |
| 7054 | |
| 7055 | return cleanup_and_return(cxx . . $ doctest/Context#run(b126dc7c1de90089).$anonymous_type_5#`operator()`(455f465bc33b4cdf).); |
| 7056 | } |
| 7057 | |
| 7058 | DOCTEST_DEFINE_INTERFACEcxx . . $ doctest/IReporter#`~IReporter`(ced63f7c635d850d).(IReporter) |
| 7059 | |
| 7060 | int IReportercxx . . $ doctest/IReporter#::get_num_active_contextscxx . . $ doctest/IReporter#get_num_active_contexts(b126dc7c1de90089).() { return detailcxx . . $ doctest/detail/::g_infoContextscxx . . $ doctest/detail/g_infoContexts..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); } |
| 7061 | const IContextScopecxx . . $ doctest/IContextScope#* const* IReportercxx . . $ doctest/IReporter#::get_active_contextscxx . . $ doctest/IReporter#get_active_contexts(586ddb2bcccf74b2).() { |
| 7062 | return get_num_active_contextscxx . . $ doctest/IReporter#get_num_active_contexts(b126dc7c1de90089).() ? &detailcxx . . $ doctest/detail/::g_infoContextscxx . . $ doctest/detail/g_infoContexts.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0] : nullptr; |
| 7063 | } |
| 7064 | |
| 7065 | int IReportercxx . . $ doctest/IReporter#::get_num_stringified_contextscxx . . $ doctest/IReporter#get_num_stringified_contexts(b126dc7c1de90089).() { return detailcxx . . $ doctest/detail/::g_cscxx . . $ doctest/detail/g_cs.->stringifiedContextscxx . . $ doctest/detail/ContextState#stringifiedContexts..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); } |
| 7066 | const Stringcxx . . $ doctest/String#* IReportercxx . . $ doctest/IReporter#::get_stringified_contextscxx . . $ doctest/IReporter#get_stringified_contexts(9029b033df7d8e43).() { |
| 7067 | return get_num_stringified_contextscxx . . $ doctest/IReporter#get_num_stringified_contexts(b126dc7c1de90089).() ? &detailcxx . . $ doctest/detail/::g_cscxx . . $ doctest/detail/g_cs.->stringifiedContextscxx . . $ doctest/detail/ContextState#stringifiedContexts.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0] : nullptr; |
| 7068 | } |
| 7069 | |
| 7070 | namespace detailcxx . . $ doctest/detail/ { |
| 7071 | void registerReporterImplcxx . . $ doctest/detail/registerReporterImpl(d9974d660a00c0f2).(const char* name, int priority, reporterCreatorFunccxx . . $ doctest/detail/reporterCreatorFunc# c, bool isReporter) { |
| 7072 | if(isReporter) |
| 7073 | getReporterscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getReporters(be1c6a749067b56).().insertcxx . . $ std/map#insert(274b9441a76f0de8).(reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#::value_typecxx . . $ std/map#value_type#(reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#::key_typecxx . . $ std/map#key_type#(priority, name), c)); |
| 7074 | else |
| 7075 | getListenerscxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/getListeners(be1c6a749067b56).().insertcxx . . $ std/map#insert(274b9441a76f0de8).(reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#::value_typecxx . . $ std/map#value_type#(reporterMapcxx . . $ doctest/`$anonymous_namespace_tests/src/unit.cpp`/reporterMap#::key_typecxx . . $ std/map#key_type#(priority, name), c)); |
| 7076 | } |
| 7077 | } // namespace detail |
| 7078 | |
| 7079 | } // namespace doctest |
| 7080 | |
| 7081 | #endif // DOCTEST_CONFIG_DISABLE |
| 7082 | |
| 7083 | #ifdef DOCTEST_CONFIG_IMPLEMENT_WITH_MAINcxx . . $ `tests/src/unit.cpp:9:9`! |
| 7084 | DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSHcxx . . $ `tests/thirdparty/doctest/doctest.h:153:9`!(4007) // 'function' : must be 'attribute' - see issue #182 |
| 7085 | int maincxx . . $ main(afcd3168fc1188a4).(int argc, char** argv) { return doctestcxx . . $ doctest/::Contextcxx . . $ doctest/Context#(argc, argv).runcxx . . $ doctest/Context#run(b126dc7c1de90089).(); } |
| 7086 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 7087 | #endif // DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN |
| 7088 | |
| 7089 | DOCTEST_CLANG_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:119:9`! |
| 7090 | DOCTEST_MSVC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:152:9`! |
| 7091 | DOCTEST_GCC_SUPPRESS_WARNING_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:139:9`! |
| 7092 | |
| 7093 | DOCTEST_SUPPRESS_COMMON_WARNINGS_POPcxx . . $ `tests/thirdparty/doctest/doctest.h:209:9`! |
| 7094 | |
| 7095 | #endif // DOCTEST_LIBRARY_IMPLEMENTATION |
| 7096 | #endif // DOCTEST_CONFIG_IMPLEMENT |
| 7097 | |
| 7098 | #ifdef DOCTEST_UNDEF_WIN32_LEAN_AND_MEAN |
| 7099 | #undef WIN32_LEAN_AND_MEAN |
| 7100 | #undef DOCTEST_UNDEF_WIN32_LEAN_AND_MEAN |
| 7101 | #endif // DOCTEST_UNDEF_WIN32_LEAN_AND_MEAN |
| 7102 | |
| 7103 | #ifdef DOCTEST_UNDEF_NOMINMAX |
| 7104 | #undef NOMINMAX |
| 7105 | #undef DOCTEST_UNDEF_NOMINMAX |
| 7106 | #endif // DOCTEST_UNDEF_NOMINMAX |