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

Method addTest

tests/cpp-tests/Source/BaseTest.cpp:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void TestList::addTest(std::string_view testName, std::function<TestBase*()> callback)
154{
155 if (!testName.empty())
156 {
157 _childTestNames.emplace_back(
158 fmt::format("{}:{}", static_cast<int>(_childTestNames.size() + 1), testName));
159 _testCallbacks.emplace_back(callback);
160 }
161}
162
163void TestList::runThisTest()
164{

Callers

nothing calls this directly

Calls 4

formatFunction · 0.50
emptyMethod · 0.45
emplace_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected