cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
testing::internal::UnitTestImpl Class Reference

#include <gtest-internal-inl.h>

Public Types

enum  ReactionToSharding { HONOR_SHARDING_PROTOCOL , IGNORE_SHARDING_PROTOCOL }
 

Public Member Functions

 UnitTestImpl (UnitTest *parent)
 
virtual ~UnitTestImpl ()
 
TestPartResultReporterInterface * GetGlobalTestPartResultReporter ()
 
void SetGlobalTestPartResultReporter (TestPartResultReporterInterface *reporter)
 
TestPartResultReporterInterface * GetTestPartResultReporterForCurrentThread ()
 
void SetTestPartResultReporterForCurrentThread (TestPartResultReporterInterface *reporter)
 
int successful_test_suite_count () const
 
int failed_test_suite_count () const
 
int total_test_suite_count () const
 
int test_suite_to_run_count () const
 
int successful_test_count () const
 
int skipped_test_count () const
 
int failed_test_count () const
 
int reportable_disabled_test_count () const
 
int disabled_test_count () const
 
int reportable_test_count () const
 
int total_test_count () const
 
int test_to_run_count () const
 
TimeInMillis start_timestamp () const
 
TimeInMillis elapsed_time () const
 
bool Passed () const
 
bool Failed () const
 
const TestSuiteGetTestSuite (int i) const
 
const TestCaseGetTestCase (int i) const
 
TestSuiteGetMutableSuiteCase (int i)
 
TestEventListenerslisteners ()
 
TestResultcurrent_test_result ()
 
const TestResultad_hoc_test_result () const
 
void set_os_stack_trace_getter (OsStackTraceGetterInterface *getter)
 
OsStackTraceGetterInterfaceos_stack_trace_getter ()
 
std::string CurrentOsStackTraceExceptTop (int skip_count) GTEST_NO_INLINE_ GTEST_NO_TAIL_CALL_
 
TestSuiteGetTestSuite (const char *test_suite_name, const char *type_param, internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc)
 
TestCaseGetTestCase (const char *test_case_name, const char *type_param, internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc)
 
void AddTestInfo (internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc, TestInfo *test_info)
 
internal::ParameterizedTestSuiteRegistryparameterized_test_registry ()
 
std::set< std::string > * ignored_parameterized_test_suites ()
 
internal::TypeParameterizedTestSuiteRegistrytype_parameterized_test_registry ()
 
void set_current_test_suite (TestSuite *a_current_test_suite)
 
void set_current_test_info (TestInfo *a_current_test_info)
 
void RegisterParameterizedTests ()
 
bool RunAllTests ()
 
void ClearNonAdHocTestResult ()
 
void ClearAdHocTestResult ()
 
void RecordProperty (const TestProperty &test_property)
 
int FilterTests (ReactionToSharding shard_tests)
 
void ListTestsMatchingFilter ()
 
const TestSuitecurrent_test_suite () const
 
TestInfocurrent_test_info ()
 
const TestInfocurrent_test_info () const
 
std::vector< Environment * > & environments ()
 
std::vector< TraceInfo > & gtest_trace_stack ()
 
const std::vector< TraceInfo > & gtest_trace_stack () const
 
void ConfigureXmlOutput ()
 
void PostFlagParsingInit ()
 
int random_seed () const
 
internal::Randomrandom ()
 
void ShuffleTests ()
 
void UnshuffleTests ()
 
bool catch_exceptions () const
 

Friends

class ::testing::UnitTest
 

Member Enumeration Documentation

◆ ReactionToSharding

Enumerator
HONOR_SHARDING_PROTOCOL 
IGNORE_SHARDING_PROTOCOL 

Constructor & Destructor Documentation

◆ UnitTestImpl()

testing::internal::UnitTestImpl::UnitTestImpl ( UnitTest * parent)
explicit

◆ ~UnitTestImpl()

testing::internal::UnitTestImpl::~UnitTestImpl ( )
virtual

Member Function Documentation

◆ ad_hoc_test_result()

const TestResult * testing::internal::UnitTestImpl::ad_hoc_test_result ( ) const
inline

◆ AddTestInfo()

void testing::internal::UnitTestImpl::AddTestInfo ( internal::SetUpTestSuiteFunc set_up_tc,
internal::TearDownTestSuiteFunc tear_down_tc,
TestInfo * test_info )
inline

◆ catch_exceptions()

bool testing::internal::UnitTestImpl::catch_exceptions ( ) const
inline

◆ ClearAdHocTestResult()

void testing::internal::UnitTestImpl::ClearAdHocTestResult ( )
inline

◆ ClearNonAdHocTestResult()

void testing::internal::UnitTestImpl::ClearNonAdHocTestResult ( )
inline

◆ ConfigureXmlOutput()

void testing::internal::UnitTestImpl::ConfigureXmlOutput ( )

◆ current_test_info() [1/2]

TestInfo * testing::internal::UnitTestImpl::current_test_info ( )
inline

◆ current_test_info() [2/2]

const TestInfo * testing::internal::UnitTestImpl::current_test_info ( ) const
inline

◆ current_test_result()

TestResult * testing::internal::UnitTestImpl::current_test_result ( )

◆ current_test_suite()

const TestSuite * testing::internal::UnitTestImpl::current_test_suite ( ) const
inline

◆ CurrentOsStackTraceExceptTop()

std::string testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop ( int skip_count)

◆ disabled_test_count()

int testing::internal::UnitTestImpl::disabled_test_count ( ) const

◆ elapsed_time()

TimeInMillis testing::internal::UnitTestImpl::elapsed_time ( ) const
inline

◆ environments()

std::vector< Environment * > & testing::internal::UnitTestImpl::environments ( )
inline

◆ Failed()

bool testing::internal::UnitTestImpl::Failed ( ) const
inline

◆ failed_test_count()

int testing::internal::UnitTestImpl::failed_test_count ( ) const

◆ failed_test_suite_count()

int testing::internal::UnitTestImpl::failed_test_suite_count ( ) const

◆ FilterTests()

int testing::internal::UnitTestImpl::FilterTests ( ReactionToSharding shard_tests)

◆ GetGlobalTestPartResultReporter()

TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter ( )

◆ GetMutableSuiteCase()

TestSuite * testing::internal::UnitTestImpl::GetMutableSuiteCase ( int i)
inline

◆ GetTestCase() [1/2]

TestCase * testing::internal::UnitTestImpl::GetTestCase ( const char * test_case_name,
const char * type_param,
internal::SetUpTestSuiteFunc set_up_tc,
internal::TearDownTestSuiteFunc tear_down_tc )
inline

◆ GetTestCase() [2/2]

const TestCase * testing::internal::UnitTestImpl::GetTestCase ( int i) const
inline

◆ GetTestPartResultReporterForCurrentThread()

TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread ( )

◆ GetTestSuite() [1/2]

TestSuite * testing::internal::UnitTestImpl::GetTestSuite ( const char * test_suite_name,
const char * type_param,
internal::SetUpTestSuiteFunc set_up_tc,
internal::TearDownTestSuiteFunc tear_down_tc )

◆ GetTestSuite() [2/2]

const TestSuite * testing::internal::UnitTestImpl::GetTestSuite ( int i) const
inline

◆ gtest_trace_stack() [1/2]

std::vector< TraceInfo > & testing::internal::UnitTestImpl::gtest_trace_stack ( )
inline

◆ gtest_trace_stack() [2/2]

const std::vector< TraceInfo > & testing::internal::UnitTestImpl::gtest_trace_stack ( ) const
inline

◆ ignored_parameterized_test_suites()

std::set< std::string > * testing::internal::UnitTestImpl::ignored_parameterized_test_suites ( )
inline

◆ listeners()

TestEventListeners * testing::internal::UnitTestImpl::listeners ( )
inline

◆ ListTestsMatchingFilter()

void testing::internal::UnitTestImpl::ListTestsMatchingFilter ( )

◆ os_stack_trace_getter()

OsStackTraceGetterInterface * testing::internal::UnitTestImpl::os_stack_trace_getter ( )

◆ parameterized_test_registry()

internal::ParameterizedTestSuiteRegistry & testing::internal::UnitTestImpl::parameterized_test_registry ( )
inline

◆ Passed()

bool testing::internal::UnitTestImpl::Passed ( ) const
inline

◆ PostFlagParsingInit()

void testing::internal::UnitTestImpl::PostFlagParsingInit ( )

◆ random()

internal::Random * testing::internal::UnitTestImpl::random ( )
inline

◆ random_seed()

int testing::internal::UnitTestImpl::random_seed ( ) const
inline

◆ RecordProperty()

void testing::internal::UnitTestImpl::RecordProperty ( const TestProperty & test_property)

◆ RegisterParameterizedTests()

void testing::internal::UnitTestImpl::RegisterParameterizedTests ( )

◆ reportable_disabled_test_count()

int testing::internal::UnitTestImpl::reportable_disabled_test_count ( ) const

◆ reportable_test_count()

int testing::internal::UnitTestImpl::reportable_test_count ( ) const

◆ RunAllTests()

bool testing::internal::UnitTestImpl::RunAllTests ( )

◆ set_current_test_info()

void testing::internal::UnitTestImpl::set_current_test_info ( TestInfo * a_current_test_info)
inline

◆ set_current_test_suite()

void testing::internal::UnitTestImpl::set_current_test_suite ( TestSuite * a_current_test_suite)
inline

◆ set_os_stack_trace_getter()

void testing::internal::UnitTestImpl::set_os_stack_trace_getter ( OsStackTraceGetterInterface * getter)

◆ SetGlobalTestPartResultReporter()

void testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter ( TestPartResultReporterInterface * reporter)

◆ SetTestPartResultReporterForCurrentThread()

void testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread ( TestPartResultReporterInterface * reporter)

◆ ShuffleTests()

void testing::internal::UnitTestImpl::ShuffleTests ( )

◆ skipped_test_count()

int testing::internal::UnitTestImpl::skipped_test_count ( ) const

◆ start_timestamp()

TimeInMillis testing::internal::UnitTestImpl::start_timestamp ( ) const
inline

◆ successful_test_count()

int testing::internal::UnitTestImpl::successful_test_count ( ) const

◆ successful_test_suite_count()

int testing::internal::UnitTestImpl::successful_test_suite_count ( ) const

◆ test_suite_to_run_count()

int testing::internal::UnitTestImpl::test_suite_to_run_count ( ) const

◆ test_to_run_count()

int testing::internal::UnitTestImpl::test_to_run_count ( ) const

◆ total_test_count()

int testing::internal::UnitTestImpl::total_test_count ( ) const

◆ total_test_suite_count()

int testing::internal::UnitTestImpl::total_test_suite_count ( ) const

◆ type_parameterized_test_registry()

internal::TypeParameterizedTestSuiteRegistry & testing::internal::UnitTestImpl::type_parameterized_test_registry ( )
inline

◆ UnshuffleTests()

void testing::internal::UnitTestImpl::UnshuffleTests ( )

Friends And Related Symbol Documentation

◆ ::testing::UnitTest

friend class ::testing::UnitTest
friend

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