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

Method applyTest

test/Test.cpp:46–60  ·  view source on GitHub ↗

Called to test a boolean condition. This method should not be called directly in your test but you should call test() instead (macro)

Source from the content-addressed store, hash-verified

44// Called to test a boolean condition.
45// This method should not be called directly in your test but you should call test() instead (macro)
46void Test::applyTest(bool condition, const std::string& testText,
47 const char* filename, long lineNumber) {
48
49 // If the boolean condition is true
50 if (condition) {
51
52 // The test passed, call the succeed() method
53 succeed();
54 }
55 else { // If the boolean condition is false
56
57 // The test failed, call the applyFail() method
58 applyFail(testText, filename, lineNumber);
59 }
60}
61
62// Called when a test has failed.
63// This method should not be called directly in your test buy you should call fail() instead (macro)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected