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

Function MakeAndRegisterTestInfo

test/common/gtest/gtest.cpp:4015–4029  ·  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

4013// The newly created TestInfo instance will assume
4014// ownership of the factory object.
4015TestInfo* MakeAndRegisterTestInfo(
4016 const char* test_case_name,
4017 const char* name,
4018 const char* type_param,
4019 const char* value_param,
4020 TypeId fixture_class_id,
4021 SetUpTestCaseFunc set_up_tc,
4022 TearDownTestCaseFunc tear_down_tc,
4023 TestFactoryBase* factory) {
4024 TestInfo* const test_info =
4025 new TestInfo(test_case_name, name, type_param, value_param,
4026 fixture_class_id, factory);
4027 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info);
4028 return test_info;
4029}
4030
4031#if GTEST_HAS_PARAM_TEST
4032void 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