Iterates over a vector of TestSuites, keeping a running sum of the results of calling a given int-returning method on each. Returns the sum.
| 1843 | // results of calling a given int-returning method on each. |
| 1844 | // Returns the sum. |
| 1845 | static int SumOverTestSuiteList(const std::vector<TestSuite*>& case_list, |
| 1846 | int (TestSuite::*method)() const) { |
| 1847 | int sum = 0; |
| 1848 | for (size_t i = 0; i < case_list.size(); i++) { |
| 1849 | sum += (case_list[i]->*method)(); |
| 1850 | } |
| 1851 | return sum; |
| 1852 | } |
| 1853 | |
| 1854 | // Returns true iff the test suite passed. |
| 1855 | static bool TestSuitePassed(const TestSuite* test_suite) { |
no test coverage detected