MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / AddTestName

Function AddTestName

rtpose_wrapper/src/gtest/gtest.h:7270–7281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

FormatFileLocationFunction · 0.85
AbortFunction · 0.70

Tested by

no test coverage detected