MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / MakeAndRegisterTestInfo

Function MakeAndRegisterTestInfo

tests/gtest/gtest-all.cc:4075–4085  ·  view source on GitHub ↗

Creates a new TestInfo object and registers it with Google Test; returns the created object. Arguments: test_suite_name: name of the test suite 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

Source from the content-addressed store, hash-verified

4073// The newly created TestInfo instance will assume
4074// ownership of the factory object.
4075TestInfo* MakeAndRegisterTestInfo(
4076 const char* test_suite_name, const char* name, const char* type_param,
4077 const char* value_param, CodeLocation code_location,
4078 TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc,
4079 TearDownTestSuiteFunc tear_down_tc, TestFactoryBase* factory) {
4080 TestInfo* const test_info =
4081 new TestInfo(test_suite_name, name, type_param, value_param,
4082 code_location, fixture_class_id, factory);
4083 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info);
4084 return test_info;
4085}
4086
4087void ReportInvalidTestSuiteType(const char* test_suite_name,
4088 CodeLocation code_location) {

Callers 3

RegisterMethod · 0.85
RegisterTestsMethod · 0.85
RegisterTestFunction · 0.85

Calls 2

GetUnitTestImplFunction · 0.85
AddTestInfoMethod · 0.80

Tested by

no test coverage detected