MCPcopy Create free account
hub / github.com/Kitware/CMake / TestComparator

Class TestComparator

Source/CTest/cmCTestMultiProcessHandler.cxx:103–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103class TestComparator
104{
105public:
106 TestComparator(cmCTestMultiProcessHandler* handler)
107 : Handler(handler)
108 {
109 }
110
111 // Sorts tests in descending order of cost
112 bool operator()(int index1, int index2) const
113 {
114 return this->Handler->Properties[index1]->Cost >
115 this->Handler->Properties[index2]->Cost;
116 }
117
118private:
119 cmCTestMultiProcessHandler* Handler;
120};
121
122cmCTestMultiProcessHandler::cmCTestMultiProcessHandler(
123 cmCTest* ctest, cmCTestTestHandler* handler)

Callers 2

Calls

no outgoing calls

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…