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

Method addStatistics

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

Source from the content-addressed store, hash-verified

137
138
139void
140XmlOutputter::addStatistics( XmlElement *rootNode )
141{
142 XmlElement *statisticsElement = new XmlElement( "Statistics" );
143 rootNode->addElement( statisticsElement );
144 statisticsElement->addElement( new XmlElement( "Tests", m_result->runTests() ) );
145 statisticsElement->addElement( new XmlElement( "FailuresTotal",
146 m_result->testFailuresTotal() ) );
147 statisticsElement->addElement( new XmlElement( "Errors", m_result->testErrors() ) );
148 statisticsElement->addElement( new XmlElement( "Failures", m_result->testFailures() ) );
149
150 for ( Hooks::iterator it = m_hooks.begin(); it != m_hooks.end(); ++it )
151 (*it)->statisticsAdded( m_xml, statisticsElement );
152}
153
154
155void

Callers

nothing calls this directly

Calls 8

addElementMethod · 0.80
runTestsMethod · 0.80
testFailuresTotalMethod · 0.80
testErrorsMethod · 0.80
testFailuresMethod · 0.80
statisticsAddedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected