/external/catch2/include/ |
D | catch.hpp | 103 #define CATCH_REQUIRE( ... ) INTERNAL_CATCH_TEST( "CATCH_REQUIRE", Catch::ResultDisposition::Normal… 104 …ALSE( ... ) INTERNAL_CATCH_TEST( "CATCH_REQUIRE_FALSE", Catch::ResultDisposition::Normal | Catch::… 106 #define CATCH_REQUIRE_THROWS( ... ) INTERNAL_CATCH_THROWS( "CATCH_REQUIRE_THROWS", Catch::ResultDis… 107 …ype ) INTERNAL_CATCH_THROWS_AS( "CATCH_REQUIRE_THROWS_AS", exceptionType, Catch::ResultDisposition… 108 …matcher ) INTERNAL_CATCH_THROWS_STR_MATCHES( "CATCH_REQUIRE_THROWS_WITH", Catch::ResultDisposition… 110 …RNAL_CATCH_THROWS_MATCHES( "CATCH_REQUIRE_THROWS_MATCHES", exceptionType, Catch::ResultDisposition… 112 #define CATCH_REQUIRE_NOTHROW( ... ) INTERNAL_CATCH_NO_THROW( "CATCH_REQUIRE_NOTHROW", Catch::Resul… 114 #define CATCH_CHECK( ... ) INTERNAL_CATCH_TEST( "CATCH_CHECK", Catch::ResultDisposition::ContinueOn… 115 …E( ... ) INTERNAL_CATCH_TEST( "CATCH_CHECK_FALSE", Catch::ResultDisposition::ContinueOnFailure | C… 116 #define CATCH_CHECKED_IF( ... ) INTERNAL_CATCH_IF( "CATCH_CHECKED_IF", Catch::ResultDisposition::Co… [all …]
|
/external/catch2/include/internal/ |
D | catch_capture.hpp | 44 …Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATC… 47 catchAssertionHandler.handleExpr( Catch::Decomposer() <= __VA_ARGS__ ); \ 57 if( Catch::getResultCapture().lastAssertionPassed() ) 62 if( !Catch::getResultCapture().lastAssertionPassed() ) 75 …Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATC… 89 …Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATC… 106 …Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATC… 128 …Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catc… 129 …catchAssertionHandler.handleMessage( messageType, ( Catch::MessageStream() << __VA_ARGS__ + ::Catc… 135 …auto varName = Catch::Capturer( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info, #__VA_… [all …]
|
D | catch_test_registry.h | 19 namespace Catch { 81 …e{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( Catch::makeTestInvoker( &TestName )… 90 …Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( Catch::makeTestInvoker( &QualifiedMeth… 100 …Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar ) ( Catch::makeTestInvoker( &TestName::te… 110 …Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( Catch::makeTestInvoker( Function ), CA… 125 …(void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFunc<Types> ), CATCH_INTERNAL_LINEINF… 135 #define CATCH_INTERNAL_CHECK_UNIQUE_TYPES(...) static_assert(Catch::is_unique<__VA_ARGS__>,"Duplica… 137 #define CATCH_INTERNAL_CHECK_UNIQUE_TYPES(...) static_assert(Catch::is_unique<__VA_ARGS__>::value,"… 167 …(void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFuncName<Types> ), CATCH_INTERNAL_LIN… 171 using TestInit = Catch::combine<INTERNAL_CATCH_REMOVE_PARENS(TmplTypes)> \ [all …]
|
D | catch_list.cpp | 28 namespace Catch { namespace 33 Catch::cout() << "Matching test cases:\n"; in listTests() 35 Catch::cout() << "All available test cases:\n"; in listTests() 45 Catch::cout() << Column( testCaseInfo.name ).initialIndent( 2 ).indent( 4 ) << "\n"; in listTests() 47 …Catch::cout() << Column( Catch::Detail::stringify( testCaseInfo.lineInfo ) ).indent(4) << std::end… in listTests() 51 Catch::cout() << Column( description ).indent(4) << std::endl; in listTests() 54 Catch::cout() << Column( testCaseInfo.tagsAsString() ).indent( 6 ) << "\n"; in listTests() 58 Catch::cout() << pluralise( matchedTestCases.size(), "test case" ) << '\n' << std::endl; in listTests() 60 … Catch::cout() << pluralise( matchedTestCases.size(), "matching test case" ) << '\n' << std::endl; in listTests() 71 Catch::cout() << '"' << testCaseInfo.name << '"'; in listTestsNamesOnly() [all …]
|
D | catch_session.cpp | 29 namespace Catch { namespace 35 … auto reporter = Catch::getRegistryHub().getReporterRegistry().create(reporterName, config); in createReporter() 42 if (Catch::getRegistryHub().getReporterRegistry().getListeners().empty()) { in makeReporter() 53 auto const& listeners = Catch::getRegistryHub().getReporterRegistry().getListeners(); in makeReporter() 55 multi.addListener(listener->create(Catch::ReporterConfig(config))); in makeReporter() 62 Catch::Totals runTests(std::shared_ptr<Config> const& config) { in runTests() 99 void applyFilenamesAsTags(Catch::IConfig const& config) { in applyFilenamesAsTags() 136 Catch::cerr() << "Errors occurred during startup!" << '\n'; in Session() 142 Catch::cerr() << Column( ex.what() ).indent(2) << '\n'; in Session() 152 Catch::cleanUp(); in ~Session() [all …]
|
D | catch_tostring.cpp | 28 namespace Catch { namespace 72 if (Catch::isnan(value)) { in fpToString() 122 return ::Catch::Detail::stringify(std::string{ str }); in convert() 128 return ::Catch::Detail::stringify(std::string{ str }); in convert() 135 return ::Catch::Detail::stringify(std::string{ str }); in convert() 148 return ::Catch::Detail::stringify(s); in convert() 159 return ::Catch::Detail::stringify(std::wstring{ str }); in convert() 166 return ::Catch::Detail::stringify(std::wstring{ str }); in convert() 175 return ::Catch::Detail::stringify(static_cast<long long>(value)); in convert() 178 return ::Catch::Detail::stringify(static_cast<long long>(value)); in convert() [all …]
|
D | catch_tostring.h | 32 namespace Catch { 101 typename std::enable_if<::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type 112 … typename std::enable_if<!::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type 128 …return ::Catch::StringMaker<typename std::remove_cv<typename std::remove_reference<T>::type>::type… in stringify() 133 … return ::Catch::Detail::stringify(static_cast<typename std::underlying_type<E>::type>(e)); in convertUnknownEnumToString() 139 return ::Catch::StringMaker<T^>::convert(e); 196 return ::Catch::Detail::stringify(std::string{ str }); 202 return ::Catch::Detail::stringify(std::string{ reinterpret_cast<char const *>(str) }); 208 return ::Catch::Detail::stringify(std::string{ reinterpret_cast<char const *>(str) }); 274 return ::Catch::Detail::rawMemoryToString(p); [all …]
|
D | catch_section.h | 18 namespace Catch { 41 …if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInf… 46 …if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInf…
|
D | catch_matchers_floating.cpp | 18 namespace Catch { namespace 61 if (Catch::isnan(lhs) || Catch::isnan(rhs)) { in almostEqualUlps() 80 namespace Catch { namespace 96 …return "is within " + ::Catch::Detail::stringify(m_margin) + " of " + ::Catch::Detail::stringify(m… in describe() 128 …return "is within " + Catch::to_string(m_ulps) + " ULPs of " + ::Catch::Detail::stringify(m_target… in describe()
|
/external/catch2/projects/SelfTest/UsageTests/ |
D | ToStringVector.tests.cpp | 9 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ); 11 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ); 13 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ); 19 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ); 21 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" ); 23 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" ); 53 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ); 55 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ); 57 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ); 64 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" ); [all …]
|
D | ToStringVariant.tests.cpp | 24 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) ); 26 CHECK( "{ }" == ::Catch::Detail::stringify(value) ); 27 CHECK( "{ }" == ::Catch::Detail::stringify(std::get<0>(value)) ); 33 CHECK( "0" == ::Catch::Detail::stringify(type{0}) ); 39 CHECK( "0.5f" == ::Catch::Detail::stringify(type{0.5f}) ); 40 CHECK( "0" == ::Catch::Detail::stringify(type{0}) ); 49 CHECK("{valueless variant}" == ::Catch::Detail::stringify(value)); 56 CHECK( "\"foo\"" == ::Catch::Detail::stringify(type{"foo"}) ); 57 CHECK( "0" == ::Catch::Detail::stringify(type{0}) ); 64 CHECK( "0.5f" == ::Catch::Detail::stringify(type{0.5f}) ); [all …]
|
D | ToStringGeneral.tests.cpp | 63 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" ); 69 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" ); 79 …REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" ); 88 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" ); 94 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" ); 100 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" ); 107 REQUIRE(Catch::Detail::stringify(singular) == "{ 1 }"); 111 REQUIRE(Catch::Detail::stringify(arr) == "{ 3, 2, 1 }"); 115 … REQUIRE(Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })"); 123 CHECK(Catch::Detail::stringify(view) == R"("abc")"); [all …]
|
D | ToStringWhich.tests.cpp | 53 namespace Catch { namespace 71 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" ); 77 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" ); 83 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" ); 88 REQUIRE( ::Catch::Detail::stringify(item) == "{ !!! }" ); 94 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" ); 102 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" ); 107 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" ); 112 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" ); 158 namespace Catch { namespace [all …]
|
D | EnumToString.tests.cpp | 18 CHECK( ::Catch::Detail::stringify(e0) == "0" ); 20 CHECK( ::Catch::Detail::stringify(e1) == "1" ); 25 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" ); 27 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" ); 52 CHECK( ::Catch::Detail::stringify(e0) == "0" ); 54 CHECK( ::Catch::Detail::stringify(e1) == "1" ); 60 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" ); 62 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" ); 65 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" );
|
D | ToStringTuple.tests.cpp | 9 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) ); 11 CHECK( "{ }" == ::Catch::Detail::stringify(value) ); 17 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) ); 24 CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) ); 25 CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) ); 31 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) ); 38 CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) ); 45 CHECK( "{ nullptr, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) );
|
/external/catch2/examples/ |
D | 210-Evt-EventListeners.cpp | 37 void print( std::ostream& os, int const level, std::string const& title, Catch::SourceLineInfo cons… in print() 51 void print( std::ostream& os, int const level, Catch::MessageInfo const& info ) { in print() 58 void print( std::ostream& os, int const level, std::string const& title, std::vector<Catch::Message… in print() 73 void print( std::ostream& os, int const level, std::string const& title, Catch::TestRunInfo const& … in print() 88 void print( std::ostream& os, int const level, std::string const& title, Catch::Counts const& info … in print() 103 void print( std::ostream& os, int const level, std::string const& title, Catch::Totals const& info … in print() 115 void print( std::ostream& os, int const level, std::string const& title, Catch::TestRunStats const&… in print() 149 void print( std::ostream& os, int const level, std::string const& title, Catch::TestCaseInfo const&… in print() 173 void print( std::ostream& os, int const level, std::string const& title, Catch::TestCaseStats const… in print() 188 void print( std::ostream& os, int const level, std::string const& title, Catch::SectionInfo const& … in print() [all …]
|
D | 310-Gen-VariablesInGenerators.cpp | 14 class RandomDoubleGenerator : public Catch::Generators::IGenerator<double> { 41 Catch::Generators::GeneratorWrapper<double> random(double low, double high) { in random() 42 …return Catch::Generators::GeneratorWrapper<double>(std::unique_ptr<Catch::Generators::IGenerator<d… in random() 62 auto number = Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, 64 using namespace Catch::Generators; in __anon4badb12f0102()
|
/external/libcxxabi/test/ |
D | catch_multi_level_pointer.pass.cpp | 51 template <class Throw, class Catch> 56 const bool can_convert = test_conversion<Catch>(throw_ptr); in catch_pointer_test() 60 } catch (Catch catch_ptr) { in catch_pointer_test() 61 Catch catch2 = CreatePointer<Catch>()(); in catch_pointer_test() 89 template <class Throw, class Catch, int level, bool first = false> 92 typedef TestTypes<Catch, first> CatchTypes; 124 template <class Throw, class Catch, bool first> 125 struct generate_tests_imp<Throw, Catch, 0, first> { 127 catch_pointer_test<Throw, Catch>(); in operator ()() 131 template <class Throw, class Catch, int level> [all …]
|
/external/catch2/projects/SelfTest/IntrospectiveTests/ |
D | TagAlias.tests.cpp | 15 Catch::TagAliasRegistry registry; 17 registry.add( "[@zzz]", "[one][two]", Catch::SourceLineInfo( "file", 2 ) ); 22 registry.add( "[@zzz]", "[one][two]", Catch::SourceLineInfo( "file", 10 ) ); 28 using namespace Catch::Matchers; 38 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) ); 39 …CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) … 40 …CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 )… 41 …CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )…
|
D | String.tests.cpp | 7 namespace Catch { namespace 33 using Catch::StringRef; 34 using Catch::isOwned; using Catch::isSubstring; 176 CHECK( Catch::replaceInPlace( letters, "b", "z" ) ); 180 CHECK( Catch::replaceInPlace( letters, "c", "z" ) ); 184 CHECK( Catch::replaceInPlace( letters, "a", "z" ) ); 188 CHECK( Catch::replaceInPlace( letters, "g", "z" ) ); 192 CHECK( Catch::replaceInPlace( letters, letters, "replaced" ) ); 196 CHECK_FALSE( Catch::replaceInPlace( letters, "x", "z" ) ); 201 CHECK( Catch::replaceInPlace( s, "'", "|'" ) );
|
/external/catch2/single_include/catch2/ |
D | catch.hpp | 95 namespace Catch { namespace 399 namespace Catch { namespace 459 ::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE__ ) ) 462 namespace Catch { namespace 472 …namespace{ Catch::RegistrarForTagAliases INTERNAL_CATCH_UNIQUE_NAME( AutoRegisterTagAlias )( alias… 482 namespace Catch { namespace 513 namespace Catch { namespace 626 inline auto operator "" _catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::Stri… in operator ""_catch_sr() 627 return Catch::StringRef( rawChars, size ); in operator ""_catch_sr() 636 namespace Catch{ namespace [all …]
|
/external/catch2/docs/ |
D | own-main.md | 5 [Let Catch take full control of args and config](#let-catch-take-full-control-of-args-and-config)<b… 10 The easiest way to use Catch is to let it supply ```main()``` for you and handle configuring itself… 14 …`` instead. Now you are free to write ```main()``` as normal and call into Catch yourself manually. 18 ## Let Catch take full control of args and config 20 If you just need to have code that executes before and/ or after Catch this is the simplest option. 29 int result = Catch::Session().run( argc, argv ); 39 If you still want Catch to process the command line, but you want to programmatically tweak the con… 47 Catch::Session session; // There must be exactly one instance 75 Catch embeds a powerful command line parser called [Clara](https://github.com/philsquared/Clara). 77 so extending Catch's own command line options is now easy. [all …]
|
D | tostring.md | 6 [Catch::StringMaker specialisation](#catchstringmaker-specialisation)<br> 7 [Catch::is_range specialisation](#catchis_range-specialisation)<br> 10 Catch needs to be able to convert types you use in assertions and logging expressions into strings … 11 …pes are supported out of the box but there are two ways that you can tell Catch how to convert you… 26 …espace as your type, or the global namespace, and have it declared before including Catch's header. 28 ## Catch::StringMaker specialisation 29 …ype differently for testing purposes, you can provide a specialization for `Catch::StringMaker<T>`: 32 namespace Catch { 42 ## Catch::is_range specialisation 43 As a fallback, Catch attempts to detect if the type can be iterated [all …]
|
D | configuration.md | 7 [Prefixing Catch macros](#prefixing-catch-macros)<br> 20 Catch is designed to "just work" as much as possible. For most people the only configuration needed… 22 Nonetheless there are still some occasions where finer control is needed. For these occasions Catch… 29 …Catch is header only it still, internally, maintains a distinction between interface headers and h… 35 Brings in various parts of Catch that are required for user defined Reporters and Listeners. This m… 39 ## Prefixing Catch macros 43 …Catch uses short macro names (e.g. ```TEST_CASE``` and ```REQUIRE```). Occasionally these may conf… 54 When sending output to the terminal, if it detects that it can, Catch will use colourised text. On … 66 Catch formats output intended for the console to fit within a fixed number of characters. This is e… 74 `std::clog`, Catch does not usem the directly, but rather calls [all …]
|
/external/bcc/tests/cc/ |
D | catch.hpp | 310 namespace Catch { namespace 423 #define CATCH_INTERNAL_LINEINFO ::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE… 424 #define CATCH_INTERNAL_ERROR( msg ) ::Catch::throwLogicError( msg, CATCH_INTERNAL_LINEINFO ); 428 namespace Catch { namespace 448 #define CATCH_NOT_IMPLEMENTED throw Catch::NotImplementedException( CATCH_INTERNAL_LINEINFO ) 458 namespace Catch { namespace 485 namespace Catch { namespace 564 namespace Catch { namespace 607 namespace Catch { namespace 632 namespace Catch { namespace [all …]
|