MCPcopy Create free account
hub / github.com/XJTU-Graphics/dandelion / writeSourceInfo

Function writeSourceInfo

deps/catch2/catch_amalgamated.cpp:10085–10092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10083namespace Catch {
10084 namespace {
10085 void writeSourceInfo( JsonObjectWriter& writer,
10086 SourceLineInfo const& sourceInfo ) {
10087 auto source_location_writer =
10088 writer.write( "source-location"_sr ).writeObject();
10089 source_location_writer.write( "filename"_sr )
10090 .write( sourceInfo.file );
10091 source_location_writer.write( "line"_sr ).write( sourceInfo.line );
10092 }
10093
10094 void writeTags( JsonArrayWriter writer, std::vector<Tag> const& tags ) {
10095 for ( auto const& tag : tags ) {

Callers 4

testCaseStartingMethod · 0.85
sectionStartingMethod · 0.85
assertionEndedMethod · 0.85
listTestsMethod · 0.85

Calls 2

writeObjectMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected