fixup! Report generator states for failed assertions

This commit is contained in:
Marcel Gotsch 2022-08-28 10:11:28 +02:00
parent 33704524d8
commit a83fbaeb20
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ namespace Catch {
virtual void sectionEndedEarly( SectionEndInfo const& endInfo ) = 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 benchmarkStarting( BenchmarkInfo const& info ) = 0;

View File

@ -319,7 +319,7 @@ namespace Catch {
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.
if ( std::find( m_generatorInfos.cbegin(),
m_generatorInfos.cend(),

View File

@ -74,7 +74,7 @@ namespace Catch {
void sectionEndedEarly( SectionEndInfo const& endInfo ) 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 benchmarkStarting( BenchmarkInfo const& info ) override;