| 4030 | |
| 4031 | #if GTEST_HAS_PARAM_TEST |
| 4032 | void 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 |
no test coverage detected