MCPcopy Create free account
hub / github.com/BVLC/caffe / SumOverTestCaseList

Function SumOverTestCaseList

src/gtest/gtest-all.cpp:1617–1624  ·  view source on GitHub ↗

Iterates over a vector of TestCases, 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

1615// results of calling a given int-returning method on each.
1616// Returns the sum.
1617static int SumOverTestCaseList(const std::vector<TestCase*>& case_list,
1618 int (TestCase::*method)() const) {
1619 int sum = 0;
1620 for (size_t i = 0; i < case_list.size(); i++) {
1621 sum += (case_list[i]->*method)();
1622 }
1623 return sum;
1624}
1625
1626// Returns true iff the test case passed.
1627static bool TestCasePassed(const TestCase* test_case) {

Callers 5

successful_test_countMethod · 0.85
failed_test_countMethod · 0.85
disabled_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