MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / GetTestInfo

Method GetTestInfo

test/common/gtest/gtest.cpp:4179–4182  ·  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

4177// Returns the i-th test among all the tests. i can range from 0 to
4178// total_test_count() - 1. If i is not in that range, returns NULL.
4179const TestInfo* TestCase::GetTestInfo(int i) const {
4180 const int index = GetElementOr(test_indices_, i, -1);
4181 return index < 0 ? NULL : test_info_list_[index];
4182}
4183
4184// Returns the i-th test among all the tests. i can range from 0 to
4185// total_test_count() - 1. If i is not in that range, returns NULL.

Callers 2

PrintFailedTestsMethod · 0.80
PrintXmlTestCaseMethod · 0.80

Calls 1

GetElementOrFunction · 0.85

Tested by

no test coverage detected