MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / SumOverTestSuiteList

Function SumOverTestSuiteList

tests/gtest/gtest-all.cc:1845–1852  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

1843// results of calling a given int-returning method on each.
1844// Returns the sum.
1845static 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.
1855static bool TestSuitePassed(const TestSuite* test_suite) {

Callers 8

successful_test_countMethod · 0.85
skipped_test_countMethod · 0.85
failed_test_countMethod · 0.85
disabled_test_countMethod · 0.85
reportable_test_countMethod · 0.85
total_test_countMethod · 0.85
test_to_run_countMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected