mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 00:51:52 +01:00 
			
		
		
		
	First draft of (experimental) benchmarking support
This commit is contained in:
		@@ -90,6 +90,9 @@ namespace Catch {
 | 
			
		||||
        return *m_reporter;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void RunContext::assertionStarting(AssertionInfo const& info) {
 | 
			
		||||
        m_reporter->assertionStarting( info );
 | 
			
		||||
    }
 | 
			
		||||
    void RunContext::assertionEnded(AssertionResult const & result) {
 | 
			
		||||
        if (result.getResultType() == ResultWas::Ok) {
 | 
			
		||||
            m_totals.assertions.passed++;
 | 
			
		||||
@@ -155,6 +158,12 @@ namespace Catch {
 | 
			
		||||
 | 
			
		||||
        m_unfinishedSections.push_back(endInfo);
 | 
			
		||||
    }
 | 
			
		||||
    void RunContext::benchmarkStarting( BenchmarkInfo const& info ) {
 | 
			
		||||
        m_reporter->benchmarkStarting( info );
 | 
			
		||||
    }
 | 
			
		||||
    void RunContext::benchmarkEnded( BenchmarkStats const& stats ) {
 | 
			
		||||
        m_reporter->benchmarkEnded( stats );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void RunContext::pushScopedMessage(MessageInfo const & message) {
 | 
			
		||||
        m_messages.push_back(message);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user