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

Function ReportInvalidTestCaseType

test/common/gtest/gtest.cpp:4032–4047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4030
4031#if GTEST_HAS_PARAM_TEST
4032void ReportInvalidTestCaseType(const char* test_case_name,
4033 const char* file, int line) {
4034 Message errors;
4035 errors
4036 << "Attempted redefinition of test case " << test_case_name << ".\n"
4037 << "All tests in the same test case must use the same test fixture\n"
4038 << "class. However, in test case " << test_case_name << ", you tried\n"
4039 << "to define a test using a fixture class different from the one\n"
4040 << "used earlier. This can happen if the two fixture classes are\n"
4041 << "from different namespaces and have the same name. You should\n"
4042 << "probably rename one of the classes to put the tests into different\n"
4043 << "test cases.";
4044
4045 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
4046 errors.GetString().c_str());
4047}
4048#endif // GTEST_HAS_PARAM_TEST
4049
4050} // namespace internal

Callers 1

Calls 2

FormatFileLocationFunction · 0.85
GetStringMethod · 0.80

Tested by

no test coverage detected