1#ifndef CPPUNIT_TESTPATH_H
2#define CPPUNIT_TESTPATH_H
6#if CPPUNIT_NEED_DLL_DECL
8#pragma warning( disable: 4251 )
71 const std::string &pathAsString );
156 virtual std::string
toString()
const;
193 const std::string &pathAsString,
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
Base class for all test objects.
Definition Test.h:26
void checkIndexValid(int index) const
Checks that the specified test index is within valid range.
Definition TestPath.cpp:185
virtual Test * getChildTest() const
Get the last test of the path.
Definition TestPath.cpp:178
Test * findActualRoot(Test *searchRoot, const std::string &pathAsString, PathTestNames &testNames)
Finds the actual root of a path string and get the path string name components.
Definition TestPath.cpp:208
TestPath()
Constructs an invalid path.
Definition TestPath.cpp:10
virtual void removeTest(int index)
Removes the test at the specified index of the path.
Definition TestPath.cpp:147
bool splitPathString(const std::string &pathAsString, PathTestNames &testNames)
Splits a path string into its test name components.
Definition TestPath.cpp:230
virtual void add(Test *test)
Adds a test to the path.
Definition TestPath.cpp:105
virtual void up()
Removes the last test.
Definition TestPath.cpp:155
virtual void removeTests()
Removes all the test from the path.
Definition TestPath.cpp:139
virtual std::string toString() const
Returns the path as a string.
Definition TestPath.cpp:193
virtual Test * getTestAt(int index) const
Returns the test of the specified index.
Definition TestPath.cpp:170
std::deque< std::string > PathTestNames
A list of test names.
Definition TestPath.h:172
Tests m_tests
Definition TestPath.h:198
virtual int getTestCount() const
Returns the number of tests in the path.
Definition TestPath.cpp:163
virtual bool isValid() const
Tests if the path contains at least one test.
Definition TestPath.cpp:98
std::deque< Test * > Tests
Definition TestPath.h:197
virtual void insert(Test *test, int index)
Inserts a test at the specified index.
Definition TestPath.cpp:120