mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
fixup! Report generator states for failed assertions
This commit is contained in:
parent
33704524d8
commit
a83fbaeb20
@ -44,7 +44,7 @@ namespace Catch {
|
|||||||
virtual void sectionEndedEarly( SectionEndInfo const& endInfo ) = 0;
|
virtual void sectionEndedEarly( SectionEndInfo const& endInfo ) = 0;
|
||||||
|
|
||||||
virtual auto acquireGeneratorTracker( StringRef generatorName, SourceLineInfo const& lineInfo ) -> IGeneratorTracker& = 0;
|
virtual auto acquireGeneratorTracker( StringRef generatorName, SourceLineInfo const& lineInfo ) -> IGeneratorTracker& = 0;
|
||||||
virtual void trackGeneratorState( GeneratorInfo info ) = 0;
|
virtual void trackGeneratorState( GeneratorInfo const& info ) = 0;
|
||||||
|
|
||||||
virtual void benchmarkPreparing( StringRef name ) = 0;
|
virtual void benchmarkPreparing( StringRef name ) = 0;
|
||||||
virtual void benchmarkStarting( BenchmarkInfo const& info ) = 0;
|
virtual void benchmarkStarting( BenchmarkInfo const& info ) = 0;
|
||||||
|
@ -319,7 +319,7 @@ namespace Catch {
|
|||||||
return tracker;
|
return tracker;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunContext::trackGeneratorState( GeneratorInfo info ) {
|
void RunContext::trackGeneratorState( GeneratorInfo const& info ) {
|
||||||
// Avoid redundant entries, in case a generator is used within a loop.
|
// Avoid redundant entries, in case a generator is used within a loop.
|
||||||
if ( std::find( m_generatorInfos.cbegin(),
|
if ( std::find( m_generatorInfos.cbegin(),
|
||||||
m_generatorInfos.cend(),
|
m_generatorInfos.cend(),
|
||||||
|
@ -74,7 +74,7 @@ namespace Catch {
|
|||||||
void sectionEndedEarly( SectionEndInfo const& endInfo ) override;
|
void sectionEndedEarly( SectionEndInfo const& endInfo ) override;
|
||||||
|
|
||||||
auto acquireGeneratorTracker( StringRef generatorName, SourceLineInfo const& lineInfo ) -> IGeneratorTracker& override;
|
auto acquireGeneratorTracker( StringRef generatorName, SourceLineInfo const& lineInfo ) -> IGeneratorTracker& override;
|
||||||
void trackGeneratorState( GeneratorInfo info ) override;
|
void trackGeneratorState( GeneratorInfo const& info ) override;
|
||||||
|
|
||||||
void benchmarkPreparing( StringRef name ) override;
|
void benchmarkPreparing( StringRef name ) override;
|
||||||
void benchmarkStarting( BenchmarkInfo const& info ) override;
|
void benchmarkStarting( BenchmarkInfo const& info ) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user