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

Function GetTestCase

test/common/gtest/gtest.cpp:996–999  ·  view source on GitHub ↗

Gets the i-th test case among all the test cases. i can range from 0 to total_test_case_count() - 1. If i is not in that range, returns NULL.

Source from the content-addressed store, hash-verified

994 // Gets the i-th test case among all the test cases. i can range from 0 to
995 // total_test_case_count() - 1. If i is not in that range, returns NULL.
996 const TestCase* GetTestCase(int i) const {
997 const int index = GetElementOr(test_case_indices_, i, -1);
998 return index < 0 ? NULL : test_cases_[i];
999 }
1000
1001 // Gets the i-th test case among all the test cases. i can range from 0 to
1002 // total_test_case_count() - 1. If i is not in that range, returns NULL.

Callers 1

AddTestInfoFunction · 0.85

Calls 1

GetElementOrFunction · 0.85

Tested by

no test coverage detected