mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-05 15:03:34 +00:00
First draft of (experimental) benchmarking support
This commit is contained in:
parent
a1e3f0b624
commit
a9b6813ad9
14 changed files with 227 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue