MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / GetTestInfo

Method GetTestInfo

3rd/googletest-1.13.0/googletest/src/gtest.cc:2957–2960  ·  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

2955// Returns the i-th test among all the tests. i can range from 0 to
2956// total_test_count() - 1. If i is not in that range, returns NULL.
2957const TestInfo* TestSuite::GetTestInfo(int i) const {
2958 const int index = GetElementOr(test_indices_, i, -1);
2959 return index < 0 ? nullptr : test_info_list_[static_cast<size_t>(index)];
2960}
2961
2962// Returns the i-th test among all the tests. i can range from 0 to
2963// total_test_count() - 1. If i is not in that range, returns NULL.

Callers 5

mainFunction · 0.45
PrintFailedTestsMethod · 0.45
PrintSkippedTestsMethod · 0.45
PrintXmlTestSuiteMethod · 0.45
PrintJsonTestSuiteMethod · 0.45

Calls 1

GetElementOrFunction · 0.85

Tested by

no test coverage detected