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

Method addTest

test/TestSuite.cpp:63–76  ·  view source on GitHub ↗

Add a unit test in the test suite

Source from the content-addressed store, hash-verified

61
62// Add a unit test in the test suite
63void TestSuite::addTest(Test* test) {
64 if (test == nullptr) {
65 throw std::invalid_argument("Error : You cannot add a nullptr test in the test suite.");
66 }
67 else if (mOutputStream != nullptr && test->getOutputStream() == nullptr) {
68 test->setOutputStream(mOutputStream);
69 }
70
71 // Add the test to the suite
72 mTests.push_back(test);
73
74 // Reset the added test
75 test->reset();
76}
77
78// Add a test suite to the current test suite
79void TestSuite::addTestSuite(const TestSuite& testSuite) {

Callers 1

mainFunction · 0.80

Calls 3

getOutputStreamMethod · 0.45
setOutputStreamMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected