Improve constructors for test application
This commit is contained in:
parent
264a349751
commit
ac8fe5d2c7
|
@ -106,10 +106,19 @@ TestApplication *TestApplication::m_instance = nullptr;
|
|||
*/
|
||||
|
||||
/*!
|
||||
* \brief Constructs a TestApplication instance.
|
||||
* \brief Constructs a TestApplication instance without further arguments.
|
||||
* \throws Throws std::runtime_error if an instance has already been created.
|
||||
*/
|
||||
TestApplication::TestApplication(int argc, char **argv)
|
||||
TestApplication::TestApplication()
|
||||
: TestApplication(0, nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Constructs a TestApplication instance for the specified arguments.
|
||||
* \throws Throws std::runtime_error if an instance has already been created.
|
||||
*/
|
||||
TestApplication::TestApplication(int argc, const char *const *argv)
|
||||
: m_testFilesPathArg("test-files-path", 'p', "specifies the path of the directory with test files")
|
||||
, m_applicationPathArg("app-path", 'a', "specifies the path of the application to be tested")
|
||||
, m_workingDirArg("working-dir", 'w', "specifies the directory to store working copies of test files")
|
||||
|
|
|
@ -22,7 +22,8 @@ enum class WorkingCopyMode {
|
|||
|
||||
class CPP_UTILITIES_EXPORT TestApplication {
|
||||
public:
|
||||
TestApplication(int argc, char **argv);
|
||||
explicit TestApplication();
|
||||
explicit TestApplication(int argc, const char * const *argv);
|
||||
~TestApplication();
|
||||
|
||||
operator bool() const;
|
||||
|
|
Loading…
Reference in New Issue