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

Method TestCase

tests/cpp-tests/Source/BaseTest.cpp:373–386  ·  view source on GitHub ↗

TestCase

Source from the content-addressed store, hash-verified

371
372// TestCase
373TestCase::TestCase()
374 : _priorTestItem(nullptr)
375 , _restartTestItem(nullptr)
376 , _nextTestItem(nullptr)
377 , _titleLabel(nullptr)
378 , _subtitleLabel(nullptr)
379 , _testSuite(nullptr)
380 , _runTime(0.0f)
381{
382 SpriteFrameCache::getInstance()->removeUnusedSpriteFrames();
383 Director::getInstance()->getTextureCache()->removeUnusedTextures();
384
385 this->schedule([&](float dt) { _runTime += dt; }, "AccumulatedTimeUse");
386}
387
388TestCase::~TestCase()
389{

Callers

nothing calls this directly

Calls 5

getInstanceFunction · 0.85
removeUnusedTexturesMethod · 0.80
getTextureCacheMethod · 0.80
scheduleMethod · 0.45

Tested by

no test coverage detected