| 7268 | // if the test case hasn't been registered; otherwise aborts the |
| 7269 | // program. |
| 7270 | bool AddTestName(const char* file, int line, const char* case_name, |
| 7271 | const char* test_name) { |
| 7272 | if (registered_) { |
| 7273 | fprintf(stderr, "%s Test %s must be defined before " |
| 7274 | "REGISTER_TYPED_TEST_CASE_P(%s, ...).\n", |
| 7275 | FormatFileLocation(file, line).c_str(), test_name, case_name); |
| 7276 | fflush(stderr); |
| 7277 | posix::Abort(); |
| 7278 | } |
| 7279 | defined_test_names_.insert(test_name); |
| 7280 | return true; |
| 7281 | } |
| 7282 | |
| 7283 | // Verifies that registered_tests match the test names in |
| 7284 | // defined_test_names_; returns registered_tests if successful, or |
nothing calls this directly
no test coverage detected