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

Method GetTestInfo

tests/gtest/gtest-all.cc:4267–4270  ·  view source on GitHub ↗

Returns the i-th test among all the tests. i can range from 0 to total_test_count() - 1. If i is not in that range, returns NULL.

Source from the content-addressed store, hash-verified

4265// Returns the i-th test among all the tests. i can range from 0 to
4266// total_test_count() - 1. If i is not in that range, returns NULL.
4267const TestInfo* TestSuite::GetTestInfo(int i) const {
4268 const int index = GetElementOr(test_indices_, i, -1);
4269 return index < 0 ? nullptr : test_info_list_[static_cast<size_t>(index)];
4270}
4271
4272// Returns the i-th test among all the tests. i can range from 0 to
4273// total_test_count() - 1. If i is not in that range, returns NULL.

Callers 4

PrintFailedTestsMethod · 0.80
PrintSkippedTestsMethod · 0.80
PrintXmlTestSuiteMethod · 0.80
PrintJsonTestSuiteMethod · 0.80

Calls 1

GetElementOrFunction · 0.85

Tested by

no test coverage detected