mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Moved line info in header again
This commit is contained in:
parent
5062d3e92b
commit
bd5910ef9f
@ -284,6 +284,15 @@ namespace Catch {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SourceLineInfo lineInfo = currentSectionInfo
|
||||||
|
? currentSectionInfo->lineInfo
|
||||||
|
: unusedTestCaseInfo->lineInfo;
|
||||||
|
|
||||||
|
if( !lineInfo.empty() ){
|
||||||
|
stream << getDashes() << "\n";
|
||||||
|
Colour colourGuard( Colour::FileName );
|
||||||
|
stream << lineInfo << "\n";
|
||||||
|
}
|
||||||
stream << getDots() << "\n" << std::endl;
|
stream << getDots() << "\n" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,10 +302,6 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
void printOpenHeader( std::string const& _name, SourceLineInfo const& _lineInfo = SourceLineInfo() ) {
|
void printOpenHeader( std::string const& _name, SourceLineInfo const& _lineInfo = SourceLineInfo() ) {
|
||||||
stream << getDashes() << "\n";
|
stream << getDashes() << "\n";
|
||||||
if( !_lineInfo.empty() ){
|
|
||||||
Colour colourGuard( Colour::FileName );
|
|
||||||
stream << _lineInfo << "\n\n";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
Colour colourGuard( Colour::Headers );
|
Colour colourGuard( Colour::Headers );
|
||||||
printUserString( _name );
|
printUserString( _name );
|
||||||
|
Loading…
Reference in New Issue
Block a user