MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / report

Method report

test/Test.cpp:78–90  ·  view source on GitHub ↗

Display the report of the unit test and return the number of failed tests

Source from the content-addressed store, hash-verified

76
77/// Display the report of the unit test and return the number of failed tests
78long Test::report() const {
79
80 if(mOutputStream) {
81 *mOutputStream << std::left << std::setw(30) << std::setfill(' ')
82 << "Test " + mName + " :" << std::setw(10) << "Passed: "
83 << std::setw(8) << mNbPassedTests
84 << std::setw(13) << "Failed: "
85 << std::setw(8) << mNbFailedTests << std::endl;
86 }
87
88 // Return the number of failed tests
89 return mNbFailedTests;
90}

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected