Xmipp  v3.23.11-Nereus
Static Public Member Functions | List of all members
testing::internal::TypeParameterizedTest< Fixture, TestSel, Types > Class Template Reference

#include <gtest-internal.h>

Static Public Member Functions

static bool Register (const char *prefix, const CodeLocation &code_location, const char *case_name, const char *test_names, int index, const std::vector< std::string > &type_names=GenerateNames< DefaultNameGenerator, Types >())
 

Detailed Description

template<GTEST_TEMPLATE_ Fixture, class TestSel, typename Types>
class testing::internal::TypeParameterizedTest< Fixture, TestSel, Types >

Definition at line 712 of file gtest-internal.h.

Member Function Documentation

◆ Register()

template<GTEST_TEMPLATE_ Fixture, class TestSel , typename Types >
static bool testing::internal::TypeParameterizedTest< Fixture, TestSel, Types >::Register ( const char *  prefix,
const CodeLocation code_location,
const char *  case_name,
const char *  test_names,
int  index,
const std::vector< std::string > &  type_names = GenerateNames<DefaultNameGeneratorTypes>() 
)
inlinestatic

Definition at line 718 of file gtest-internal.h.

721  {
722  typedef typename Types::Head Type;
723  typedef Fixture<Type> FixtureClass;
724  typedef typename GTEST_BIND_(TestSel, Type) TestClass;
725 
726  // First, registers the first type-parameterized test in the type
727  // list.
729  (std::string(prefix) + (prefix[0] == '\0' ? "" : "/") + case_name +
730  "/" + type_names[static_cast<size_t>(index)])
731  .c_str(),
732  StripTrailingSpaces(GetPrefixUntilComma(test_names)).c_str(),
733  GetTypeName<Type>().c_str(),
734  nullptr, // No value parameter.
735  code_location, GetTypeId<FixtureClass>(),
737  code_location.file.c_str(), code_location.line),
739  code_location.file.c_str(), code_location.line),
740  new TestFactoryImpl<TestClass>);
741 
742  // Next, recurses (at compile time) with the tail of the type list.
743  return TypeParameterizedTest<Fixture, TestSel,
744  typename Types::Tail>::Register(prefix,
745  code_location,
746  case_name,
747  test_names,
748  index + 1,
749  type_names);
750  }
static SetUpTearDownSuiteFuncType GetTearDownCaseOrSuite(const char *filename, int line_num)
#define GTEST_BIND_(TmplSel, T)
static bool Register(const char *prefix, const CodeLocation &code_location, const char *case_name, const char *test_names, int index, const std::vector< std::string > &type_names=GenerateNames< DefaultNameGenerator, Types >())
std::string GetPrefixUntilComma(const char *str)
viol index
Types< Tail_... > Tail
GTEST_API_ TestInfo * MakeAndRegisterTestInfo(const char *test_suite_name, const char *name, const char *type_param, const char *value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc, TearDownTestSuiteFunc tear_down_tc, TestFactoryBase *factory)
static SetUpTearDownSuiteFuncType GetSetUpCaseOrSuite(const char *filename, int line_num)
std::string StripTrailingSpaces(std::string str)
Definition: gtest-port.h:1967

The documentation for this class was generated from the following file: