Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Config Class Reference

#include <catch_config.hpp>

Inheritance diagram for Catch::Config:
Collaboration diagram for Catch::Config:

Public Member Functions

 Config ()=default
 
 Config (ConfigData const &data)
 
virtual ~Config ()=default
 
std::string const & getFilename () const
 
bool listTests () const
 
bool listTestNamesOnly () const
 
bool listTags () const
 
bool listReporters () const
 
std::string getProcessName () const
 
std::string const & getReporterName () const
 
std::vector< std::string > const & getTestsOrTags () const override
 
std::vector< std::string > const & getSectionsToRun () const override
 
TestSpec const & testSpec () const override
 
bool hasTestFilters () const override
 
bool showHelp () const
 
bool allowThrows () const override
 
std::ostream & stream () const override
 
std::string name () const override
 
bool includeSuccessfulResults () const override
 
bool warnAboutMissingAssertions () const override
 
bool warnAboutNoTests () const override
 
ShowDurations::OrNot showDurations () const override
 
RunTests::InWhatOrder runOrder () const override
 
unsigned int rngSeed () const override
 
int benchmarkResolutionMultiple () const override
 
UseColour::YesOrNo useColour () const override
 
bool shouldDebugBreak () const override
 
int abortAfter () const override
 
bool showInvisibles () const override
 
Verbosity verbosity () const override
 
- Public Member Functions inherited from Catch::IConfig
virtual ~IConfig ()
 
virtual ~IConfig ()
 

Additional Inherited Members

- Protected Member Functions inherited from Catch::NonCopyable
 NonCopyable ()
 
virtual ~NonCopyable ()
 
 NonCopyable ()
 
virtual ~NonCopyable ()
 

Detailed Description

Definition at line 68 of file catch_config.hpp.

Constructor & Destructor Documentation

◆ Config() [1/2]

Catch::Config::Config ( )
default

◆ Config() [2/2]

Catch::Config::Config ( ConfigData const & data)

Definition at line 14 of file catch_config.cpp.

15 : m_data( data ),
16 m_stream( openStream() )
17 {
18 TestSpecParser parser(ITagAliasRegistry::get());
19 if (!data.testsOrTags.empty()) {
20 m_hasTestFilters = true;
21 for( auto const& testOrTags : data.testsOrTags )
22 parser.parse( testOrTags );
23 }
24 m_testSpec = parser.testSpec();
25 }
static ITagAliasRegistry const & get()
Here is the call graph for this function:

◆ ~Config()

virtual Catch::Config::~Config ( )
virtualdefault

Member Function Documentation

◆ abortAfter()

int Catch::Config::abortAfter ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 60 of file catch_config.cpp.

60{ return m_data.abortAfter; }

◆ allowThrows()

bool Catch::Config::allowThrows ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 48 of file catch_config.cpp.

48{ return !m_data.noThrow; }

◆ benchmarkResolutionMultiple()

int Catch::Config::benchmarkResolutionMultiple ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 57 of file catch_config.cpp.

57{ return m_data.benchmarkResolutionMultiple; }

◆ getFilename()

std::string const & Catch::Config::getFilename ( ) const

Definition at line 27 of file catch_config.cpp.

27 {
28 return m_data.outputFilename ;
29 }
std::string outputFilename

◆ getProcessName()

std::string Catch::Config::getProcessName ( ) const

Definition at line 36 of file catch_config.cpp.

36{ return m_data.processName; }
std::string processName

◆ getReporterName()

std::string const & Catch::Config::getReporterName ( ) const

Definition at line 37 of file catch_config.cpp.

37{ return m_data.reporterName; }
std::string reporterName

◆ getSectionsToRun()

std::vector< std::string > const & Catch::Config::getSectionsToRun ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 40 of file catch_config.cpp.

40{ return m_data.sectionsToRun; }
std::vector< std::string > sectionsToRun

◆ getTestsOrTags()

std::vector< std::string > const & Catch::Config::getTestsOrTags ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 39 of file catch_config.cpp.

39{ return m_data.testsOrTags; }
std::vector< std::string > testsOrTags

◆ hasTestFilters()

bool Catch::Config::hasTestFilters ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 43 of file catch_config.cpp.

43{ return m_hasTestFilters; }
Here is the caller graph for this function:

◆ includeSuccessfulResults()

bool Catch::Config::includeSuccessfulResults ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 51 of file catch_config.cpp.

51{ return m_data.showSuccessfulTests; }

◆ listReporters()

bool Catch::Config::listReporters ( ) const

Definition at line 34 of file catch_config.cpp.

34{ return m_data.listReporters; }

◆ listTags()

bool Catch::Config::listTags ( ) const

Definition at line 33 of file catch_config.cpp.

33{ return m_data.listTags; }

◆ listTestNamesOnly()

bool Catch::Config::listTestNamesOnly ( ) const

Definition at line 32 of file catch_config.cpp.

32{ return m_data.listTestNamesOnly; }

◆ listTests()

bool Catch::Config::listTests ( ) const

Definition at line 31 of file catch_config.cpp.

31{ return m_data.listTests; }

◆ name()

std::string Catch::Config::name ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 50 of file catch_config.cpp.

50{ return m_data.name.empty() ? m_data.processName : m_data.name; }

◆ rngSeed()

unsigned int Catch::Config::rngSeed ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 56 of file catch_config.cpp.

56{ return m_data.rngSeed; }
unsigned int rngSeed

◆ runOrder()

RunTests::InWhatOrder Catch::Config::runOrder ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 55 of file catch_config.cpp.

55{ return m_data.runOrder; }
RunTests::InWhatOrder runOrder

◆ shouldDebugBreak()

bool Catch::Config::shouldDebugBreak ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 59 of file catch_config.cpp.

59{ return m_data.shouldDebugBreak; }

◆ showDurations()

ShowDurations::OrNot Catch::Config::showDurations ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 54 of file catch_config.cpp.

54{ return m_data.showDurations; }
ShowDurations::OrNot showDurations

◆ showHelp()

bool Catch::Config::showHelp ( ) const

Definition at line 45 of file catch_config.cpp.

45{ return m_data.showHelp; }

◆ showInvisibles()

bool Catch::Config::showInvisibles ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 61 of file catch_config.cpp.

61{ return m_data.showInvisibles; }

◆ stream()

std::ostream & Catch::Config::stream ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 49 of file catch_config.cpp.

49{ return m_stream->stream(); }

◆ testSpec()

TestSpec const & Catch::Config::testSpec ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 42 of file catch_config.cpp.

42{ return m_testSpec; }
Here is the caller graph for this function:

◆ useColour()

UseColour::YesOrNo Catch::Config::useColour ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 58 of file catch_config.cpp.

58{ return m_data.useColour; }
UseColour::YesOrNo useColour

◆ verbosity()

Verbosity Catch::Config::verbosity ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 62 of file catch_config.cpp.

62{ return m_data.verbosity; }

◆ warnAboutMissingAssertions()

bool Catch::Config::warnAboutMissingAssertions ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 52 of file catch_config.cpp.

52{ return !!(m_data.warnings & WarnAbout::NoAssertions); }
WarnAbout::What warnings

◆ warnAboutNoTests()

bool Catch::Config::warnAboutNoTests ( ) const
overridevirtual

Implements Catch::IConfig.

Definition at line 53 of file catch_config.cpp.


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