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

Public Member Functions

 ~MyListener ()
 
void testRunStarting (Catch::TestRunInfo const &testRunInfo) override
 
void testRunEnded (Catch::TestRunStats const &testRunStats) override
 
void skipTest (Catch::TestCaseInfo const &testInfo) override
 
void testCaseStarting (Catch::TestCaseInfo const &testInfo) override
 
void testCaseEnded (Catch::TestCaseStats const &testCaseStats) override
 
void sectionStarting (Catch::SectionInfo const &sectionInfo) override
 
void sectionEnded (Catch::SectionStats const &sectionStats) override
 
void assertionStarting (Catch::AssertionInfo const &assertionInfo) override
 
bool assertionEnded (Catch::AssertionStats const &assertionStats) override
 
- 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
 

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 300 of file 210-Evt-EventListeners.cpp.

Constructor & Destructor Documentation

◆ ~MyListener()

MyListener::~MyListener ( )

Definition at line 373 of file 210-Evt-EventListeners.cpp.

373{}

Member Function Documentation

◆ assertionEnded()

bool MyListener::assertionEnded ( Catch::AssertionStats const & assertionStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 363 of file 210-Evt-EventListeners.cpp.

363 {
364 std::cout << "\nEvent: assertionEnded:\n";
365 print( std::cout, 1, "- assertionStats", assertionStats );
366 return true;
367 }
void print(std::ostream &os, int const level, std::string const &title, Catch::SourceLineInfo const &info)
Here is the call graph for this function:

◆ assertionStarting()

void MyListener::assertionStarting ( Catch::AssertionInfo const & assertionInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 358 of file 210-Evt-EventListeners.cpp.

358 {
359 std::cout << "\nEvent: assertionStarting:\n";
360 print( std::cout, 1, "- assertionInfo", assertionInfo );
361 }
Here is the call graph for this function:

◆ sectionEnded()

void MyListener::sectionEnded ( Catch::SectionStats const & sectionStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 352 of file 210-Evt-EventListeners.cpp.

352 {
353 std::cout << "\nEvent: sectionEnded:\n";
354 print( std::cout, 1, "- sectionStats", sectionStats );
355 }
Here is the call graph for this function:

◆ sectionStarting()

void MyListener::sectionStarting ( Catch::SectionInfo const & sectionInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 346 of file 210-Evt-EventListeners.cpp.

346 {
347 std::cout << "\nEvent: sectionStarting:\n";
348 print( std::cout, 1, "- sectionInfo", sectionInfo );
349 }
Here is the call graph for this function:

◆ skipTest()

void MyListener::skipTest ( Catch::TestCaseInfo const & testInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 324 of file 210-Evt-EventListeners.cpp.

324 {
325 std::cout
326 << dashed_line
327 << "\nEvent: skipTest:\n";
328 print( std::cout, 1, "- testInfo", testInfo );
329 }
char const * dashed_line
Here is the call graph for this function:

◆ testCaseEnded()

void MyListener::testCaseEnded ( Catch::TestCaseStats const & testCaseStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 340 of file 210-Evt-EventListeners.cpp.

340 {
341 std::cout << "\nEvent: testCaseEnded:\n";
342 print( std::cout, 1, "testCaseStats", testCaseStats );
343 }
Here is the call graph for this function:

◆ testCaseStarting()

void MyListener::testCaseStarting ( Catch::TestCaseInfo const & testInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 332 of file 210-Evt-EventListeners.cpp.

332 {
333 std::cout
334 << dashed_line
335 << "\nEvent: testCaseStarting:\n";
336 print( std::cout, 1, "- testInfo", testInfo );
337 }
Here is the call graph for this function:

◆ testRunEnded()

void MyListener::testRunEnded ( Catch::TestRunStats const & testRunStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 316 of file 210-Evt-EventListeners.cpp.

316 {
317 std::cout
318 << dashed_line
319 << "\nEvent: testRunEnded:\n";
320 print( std::cout, 1, "- testRunStats", testRunStats );
321 }
Here is the call graph for this function:

◆ testRunStarting()

void MyListener::testRunStarting ( Catch::TestRunInfo const & testRunInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 308 of file 210-Evt-EventListeners.cpp.

308 {
309 std::cout
310 << std::boolalpha
311 << "\nEvent: testRunStarting:\n";
312 print( std::cout, 1, "- testRunInfo", testRunInfo );
313 }
Here is the call graph for this function:

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