1#ifndef CPPUNIT_TESTPATH_H
2#define CPPUNIT_TESTPATH_H
6#if CPPUNIT_NEED_DLL_DECL
8#pragma warning( disable: 4251 )
19#if CPPUNIT_NEED_DLL_DECL
76 const std::string &pathAsString );
161 virtual std::string
toString()
const;
198 const std::string &pathAsString,
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CppUnitDeque
Definition CppUnitDeque.h:20
#define CPPUNIT_NS_END
Definition Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition Portability.h:119
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:181
virtual Test * getChildTest() const
Get the last test of the path.
Definition TestPath.cpp:174
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:204
CppUnitDeque< std::string > PathTestNames
A list of test names.
Definition TestPath.h:177
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:143
bool splitPathString(const std::string &pathAsString, PathTestNames &testNames)
Splits a path string into its test name components.
Definition TestPath.cpp:226
virtual void add(Test *test)
Adds a test to the path.
Definition TestPath.cpp:101
CppUnitDeque< Test * > Tests
Definition TestPath.h:202
virtual void up()
Removes the last test.
Definition TestPath.cpp:151
virtual void removeTests()
Removes all the test from the path.
Definition TestPath.cpp:135
virtual std::string toString() const
Returns the path as a string.
Definition TestPath.cpp:189
virtual Test * getTestAt(int index) const
Returns the test of the specified index.
Definition TestPath.cpp:166
Tests m_tests
Definition TestPath.h:203
virtual int getTestCount() const
Returns the number of tests in the path.
Definition TestPath.cpp:159
virtual bool isValid() const
Tests if the path contains at least one test.
Definition TestPath.cpp:94
virtual void insert(Test *test, int index)
Inserts a test at the specified index.
Definition TestPath.cpp:116