Gets the i-th test suite among all the test suites. i can range from 0 to total_test_suite_count() - 1. If i is not in that range, returns NULL.
| 981 | // Gets the i-th test suite among all the test suites. i can range from 0 to |
| 982 | // total_test_suite_count() - 1. If i is not in that range, returns NULL. |
| 983 | const TestSuite* GetTestSuite(int i) const { |
| 984 | const int index = GetElementOr(test_suite_indices_, i, -1); |
| 985 | return index < 0 ? nullptr : test_suites_[static_cast<size_t>(i)]; |
| 986 | } |
| 987 | |
| 988 | // Legacy API is deprecated but still available |
| 989 | #ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_ |
no test coverage detected