Gromacs  2025.0-dev-20241009-5c23d5f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
gmx::test::NameOfTestFromTuple< ParametersTuple > Class Template Reference

#include <testutils/include/testutils/naming.h>

Description

template<typename ParametersTuple>
class gmx::test::NameOfTestFromTuple< ParametersTuple >

Function object that helps GoogleTest name our test cases.

Template Parameters
ParametersTupleA tuple of test parameters used to declare the test fixture class via testing::TestWithParam.

Public Types

using Formatters = typename detail::ParamsToFormatterVariants< ParametersTuple >::type
 

Public Member Functions

 NameOfTestFromTuple (Formatters formatters)
 Constructor.
 
std::string operator() (const testing::TestParamInfo< ParametersTuple > &info) const
 Return the name of this test. More...
 

Member Function Documentation

template<typename ParametersTuple >
std::string gmx::test::NameOfTestFromTuple< ParametersTuple >::operator() ( const testing::TestParamInfo< ParametersTuple > &  info) const
inline

Return the name of this test.

Called by GoogleTest while instantiating value-parameterized tests with the test info that contains a tuple of parameters which must be converted to a unique name.


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