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

#include <catch_test_spec_parser.h>

Public Member Functions

 TestSpecParser (ITagAliasRegistry const &tagAliases)
 
TestSpecParserparse (std::string const &arg)
 
TestSpec testSpec ()
 

Detailed Description

Definition at line 22 of file catch_test_spec_parser.h.

Constructor & Destructor Documentation

◆ TestSpecParser()

Catch::TestSpecParser::TestSpecParser ( ITagAliasRegistry const & tagAliases)

Definition at line 12 of file catch_test_spec_parser.cpp.

12: m_tagAliases( &tagAliases ) {}

Member Function Documentation

◆ parse()

TestSpecParser & Catch::TestSpecParser::parse ( std::string const & arg)

Definition at line 14 of file catch_test_spec_parser.cpp.

14 {
15 m_mode = None;
16 m_exclusion = false;
17 m_start = std::string::npos;
18 m_arg = m_tagAliases->expandAliases( arg );
19 m_escapeChars.clear();
20 for( m_pos = 0; m_pos < m_arg.size(); ++m_pos )
21 visitChar( m_arg[m_pos] );
22 if( m_mode == Name )
23 addPattern<TestSpec::NamePattern>();
24 return *this;
25 }
virtual std::string expandAliases(std::string const &unexpandedTestSpec) const =0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ testSpec()

TestSpec Catch::TestSpecParser::testSpec ( )

Definition at line 26 of file catch_test_spec_parser.cpp.

26 {
27 addFilter();
28 return m_testSpec;
29 }
Here is the caller graph for this function:

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