mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Do not copy around TestCaseInfo
Now a `TEST_CASE` macro should create a single TestCaseInfo and then it should never be copied around. This, together with latter changes, should significantly decrease the number of allocations made before `main` is even entered.
This commit is contained in:
		| @@ -170,7 +170,7 @@ void print( std::ostream& os, int const level, std::string const& title, Catch:: | ||||
|  | ||||
| void print( std::ostream& os, int const level, std::string const& title, Catch::TestCaseStats const& info ) { | ||||
|     os << ws(level  ) << title << ":\n"; | ||||
|     print( os, level+1 , "- testInfo", info.testInfo ); | ||||
|     print( os, level+1 , "- testInfo", *info.testInfo ); | ||||
|     print( os, level+1 , "- totals"  , info.totals   ); | ||||
|     os << ws(level+1) << "- stdOut: "   << info.stdOut << "\n" | ||||
|        << ws(level+1) << "- stdErr: "   << info.stdErr << "\n" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský