Skip to content

Commit

Permalink
fixup! Report generator states for failed assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
gotschmarcel committed Oct 1, 2022
1 parent 3370452 commit a83fbae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/catch2/interfaces/catch_interfaces_capture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/catch2/internal/catch_run_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/catch2/internal/catch_run_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a83fbae

Please sign in to comment.