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

Method getNbFailedTests

test/TestSuite.cpp:51–60  ·  view source on GitHub ↗

Return the number of failed tests

Source from the content-addressed store, hash-verified

49
50// Return the number of failed tests
51long TestSuite::getNbFailedTests() const {
52 long nbFailedTests = 0;
53
54 for (size_t i=0; i<mTests.size(); i++) {
55 assert(mTests[i]);
56 nbFailedTests += mTests[i]->getNbFailedTests();
57 }
58
59 return nbFailedTests;
60}
61
62// Add a unit test in the test suite
63void TestSuite::addTest(Test* test) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected