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

Function suiteOrderComparator

tests/framework/src/doctest.cpp:1287–1292  ·  view source on GitHub ↗

for sorting tests by suite/file/line

Source from the content-addressed store, hash-verified

1285
1286 // for sorting tests by suite/file/line
1287 bool suiteOrderComparator(const TestCase* lhs, const TestCase* rhs) {
1288 const int res = std::strcmp(lhs->m_test_suite, rhs->m_test_suite);
1289 if(res != 0)
1290 return res < 0;
1291 return fileOrderComparator(lhs, rhs);
1292 }
1293
1294 // for sorting tests by name/suite/file/line
1295 bool nameOrderComparator(const TestCase* lhs, const TestCase* rhs) {

Callers 1

nameOrderComparatorFunction · 0.85

Calls 1

fileOrderComparatorFunction · 0.85

Tested by

no test coverage detected