Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
TestListener Struct Reference
Inheritance diagram for TestListener:
Collaboration diagram for TestListener:

Public Member Functions

 TestListener ()
 
 TestListener (int *on_start_counter, bool *is_destroyed)
 
virtual ~TestListener ()
 
- Public Member Functions inherited from Catch::TestEventListenerBase
 TestEventListenerBase (ReporterConfig const &_config)
 
void assertionStarting (AssertionInfo const &) override
 
bool assertionEnded (AssertionStats const &) override
 
- Public Member Functions inherited from Catch::StreamingReporterBase< TestEventListenerBase >
 StreamingReporterBase (ReporterConfig const &_config)
 
ReporterPreferences getPreferences () const override
 
 ~StreamingReporterBase () override=default
 
void noMatchingTestCases (std::string const &) override
 
void testRunStarting (TestRunInfo const &_testRunInfo) override
 
void testGroupStarting (GroupInfo const &_groupInfo) override
 
void testCaseStarting (TestCaseInfo const &_testInfo) override
 
void sectionStarting (SectionInfo const &_sectionInfo) override
 
void sectionEnded (SectionStats const &) override
 
void testCaseEnded (TestCaseStats const &) override
 
void testGroupEnded (TestGroupStats const &) override
 
void testRunEnded (TestRunStats const &) override
 
void skipTest (TestCaseInfo const &) override
 
- Public Member Functions inherited from Catch::IStreamingReporter
virtual ~IStreamingReporter ()=default
 
virtual void benchmarkStarting (BenchmarkInfo const &)
 
virtual void benchmarkEnded (BenchmarkStats const &)
 
virtual void fatalErrorEncountered (StringRef name)
 
virtual bool isMulti () const
 

Protected Member Functions

virtual void OnTestProgramStart (const UnitTest &)
 

Additional Inherited Members

- Static Public Member Functions inherited from Catch::TestEventListenerBase
static std::set< VerbositygetSupportedVerbosities ()
 
- Static Public Member Functions inherited from Catch::StreamingReporterBase< TestEventListenerBase >
static std::set< VerbositygetSupportedVerbosities ()
 
- Public Attributes inherited from Catch::StreamingReporterBase< TestEventListenerBase >
IConfigPtr m_config
 
std::ostream & stream
 
LazyStat< TestRunInfocurrentTestRunInfo
 
LazyStat< GroupInfocurrentGroupInfo
 
LazyStat< TestCaseInfocurrentTestCaseInfo
 
std::vector< SectionInfom_sectionStack
 
ReporterPreferences m_reporterPrefs
 

Detailed Description

Definition at line 7009 of file gtest_unittest.cc.

Constructor & Destructor Documentation

◆ TestListener() [1/2]

TestListener::TestListener ( )
inline

Definition at line 7011 of file gtest_unittest.cc.

7011: on_start_counter_(NULL), is_destroyed_(NULL) {}

◆ TestListener() [2/2]

TestListener::TestListener ( int * on_start_counter,
bool * is_destroyed )
inline

Definition at line 7012 of file gtest_unittest.cc.

7013 : on_start_counter_(on_start_counter),
7014 is_destroyed_(is_destroyed) {}

◆ ~TestListener()

virtual TestListener::~TestListener ( )
inlinevirtual

Definition at line 7016 of file gtest_unittest.cc.

7016 {
7017 if (is_destroyed_)
7018 *is_destroyed_ = true;
7019 }

Member Function Documentation

◆ OnTestProgramStart()

virtual void TestListener::OnTestProgramStart ( const UnitTest & )
inlineprotectedvirtual

Definition at line 7022 of file gtest_unittest.cc.

7022 {
7023 if (on_start_counter_ != NULL)
7024 (*on_start_counter_)++;
7025 }

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