MCPcopy Create free account
hub / github.com/axmolengine/axmol / getTestCase

Function getTestCase

tests/cpp-tests/Source/BaseTest.cpp:300–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static TestCase* getTestCase(Scene* scene)
301{
302 auto transitionScene = dynamic_cast<TransitionScene*>(scene);
303 TestCase* testCase = nullptr;
304 if (transitionScene)
305 {
306 testCase = dynamic_cast<TestCase*>(transitionScene->getInScene());
307 }
308 else
309 {
310 testCase = dynamic_cast<TestCase*>(scene);
311 }
312
313 return testCase;
314}
315
316void TestSuite::runThisTest()
317{

Callers 4

runThisTestMethod · 0.85
restartCurrTestMethod · 0.85
enterNextTestMethod · 0.85
enterPreviousTestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected