tesseract v5.3.3.20231005
testing::WithParamInterface< T > Class Template Reference

#include <gtest.h>

Inheritance diagram for testing::WithParamInterface< T >:
testing::TestWithParam< T >

Public Types

typedef T ParamType
 

Public Member Functions

virtual ~WithParamInterface ()
 

Static Public Member Functions

static const ParamTypeGetParam ()
 

Friends

template<class TestClass >
class internal::ParameterizedTestFactory
 

Detailed Description

template<typename T>
class testing::WithParamInterface< T >

Definition at line 1846 of file gtest.h.

Member Typedef Documentation

◆ ParamType

template<typename T >
typedef T testing::WithParamInterface< T >::ParamType

Definition at line 1848 of file gtest.h.

Constructor & Destructor Documentation

◆ ~WithParamInterface()

template<typename T >
virtual testing::WithParamInterface< T >::~WithParamInterface ( )
inlinevirtual

Definition at line 1849 of file gtest.h.

1849{}

Member Function Documentation

◆ GetParam()

template<typename T >
static const ParamType & testing::WithParamInterface< T >::GetParam ( )
inlinestatic

Definition at line 1853 of file gtest.h.

1853 {
1854 GTEST_CHECK_(parameter_ != nullptr)
1855 << "GetParam() can only be called inside a value-parameterized test "
1856 << "-- did you intend to write TEST_P instead of TEST_F?";
1857 return *parameter_;
1858 }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1008

Friends And Related Function Documentation

◆ internal::ParameterizedTestFactory

template<typename T >
template<class TestClass >
friend class internal::ParameterizedTestFactory
friend

Definition at line 1871 of file gtest.h.


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