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

Function MakeAndRegisterTestInfo

rtpose_wrapper/src/gtest/gtest-all.cpp:3532–3545  ·  view source on GitHub ↗

Creates a new TestInfo object and registers it with Google Test; returns the created object. Arguments: test_case_name: name of the test case name: name of the test type_param: the name of the test's type parameter, or NULL if this is not a typed or a type-parameterized test. value_param: text representation of the test's value parameter, or NULL if this is not a value-p

Source from the content-addressed store, hash-verified

3530// The newly created TestInfo instance will assume
3531// ownership of the factory object.
3532TestInfo* MakeAndRegisterTestInfo(
3533 const char* test_case_name, const char* name,
3534 const char* type_param,
3535 const char* value_param,
3536 TypeId fixture_class_id,
3537 SetUpTestCaseFunc set_up_tc,
3538 TearDownTestCaseFunc tear_down_tc,
3539 TestFactoryBase* factory) {
3540 TestInfo* const test_info =
3541 new TestInfo(test_case_name, name, type_param, value_param,
3542 fixture_class_id, factory);
3543 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info);
3544 return test_info;
3545}
3546
3547#if GTEST_HAS_PARAM_TEST
3548void ReportInvalidTestCaseType(const char* test_case_name,

Callers 2

RegisterMethod · 0.85
RegisterTestsMethod · 0.85

Calls 2

GetUnitTestImplFunction · 0.85
AddTestInfoMethod · 0.80

Tested by

no test coverage detected