MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / nameOrderComparator

Function nameOrderComparator

tests/framework/src/doctest.cpp:1295–1300  ·  view source on GitHub ↗

for sorting tests by name/suite/file/line

Source from the content-addressed store, hash-verified

1293
1294 // for sorting tests by name/suite/file/line
1295 bool nameOrderComparator(const TestCase* lhs, const TestCase* rhs) {
1296 const int res = std::strcmp(lhs->m_name, rhs->m_name);
1297 if(res != 0)
1298 return res < 0;
1299 return suiteOrderComparator(lhs, rhs);
1300 }
1301
1302 DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wdeprecated-declarations")
1303 void color_to_stream(std::ostream& s, Color::Enum code) {

Callers

nothing calls this directly

Calls 1

suiteOrderComparatorFunction · 0.85

Tested by

no test coverage detected