MCPcopy Create free account
hub / github.com/FlightGear/flightgear / addFailureLocation

Method addFailureLocation

3rdparty/cppunit/src/cppunit/XmlOutputter.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181void
182XmlOutputter::addFailureLocation( TestFailure *failure,
183 XmlElement *testElement )
184{
185 XmlElement *locationNode = new XmlElement( "Location" );
186 testElement->addElement( locationNode );
187 SourceLine sourceLine = failure->sourceLine();
188 locationNode->addElement( new XmlElement( "File", sourceLine.fileName() ) );
189 locationNode->addElement( new XmlElement( "Line", sourceLine.lineNumber() ) );
190}
191
192
193void

Callers

nothing calls this directly

Calls 4

addElementMethod · 0.80
sourceLineMethod · 0.45
fileNameMethod · 0.45
lineNumberMethod · 0.45

Tested by

no test coverage detected