MCPcopy Create free account
hub / github.com/catchorg/Catch2 / writeSourceInfo

Function writeSourceInfo

extras/catch_amalgamated.cpp:10634–10641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10632namespace Catch {
10633 namespace {
10634 void writeSourceInfo( JsonObjectWriter& writer,
10635 SourceLineInfo const& sourceInfo ) {
10636 auto source_location_writer =
10637 writer.write( "source-location"_sr ).writeObject();
10638 source_location_writer.write( "filename"_sr )
10639 .write( sourceInfo.file );
10640 source_location_writer.write( "line"_sr ).write( sourceInfo.line );
10641 }
10642
10643 void writeTags( JsonArrayWriter writer, std::vector<Tag> const& tags ) {
10644 for ( auto const& tag : tags ) {

Callers 4

testCaseStartingMethod · 0.70
sectionStartingMethod · 0.70
assertionEndedMethod · 0.70
listTestsMethod · 0.70

Calls 2

writeObjectMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected