mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
style fixes
This commit is contained in:
@@ -228,18 +228,21 @@ inline std::string TestCase::toString() const
|
|||||||
return std::string(thisClass.name()) + "." + name();
|
return std::string(thisClass.name()) + "." + name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Returns the type of the test, see Test::Type
|
// Returns the type of the test, see Test::Type
|
||||||
inline Test::Type TestCase::getType() const
|
inline Test::Type TestCase::getType() const
|
||||||
{
|
{
|
||||||
return _type;
|
return _type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set the type of the test, see Test::Type
|
// Set the type of the test, see Test::Type
|
||||||
inline void TestCase::setType(Test::Type testType)
|
inline void TestCase::setType(Test::Type testType)
|
||||||
{
|
{
|
||||||
_type = testType;
|
_type = testType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// A set of macros which allow us to get the line number
|
// A set of macros which allow us to get the line number
|
||||||
// and file name at the point of an error.
|
// and file name at the point of an error.
|
||||||
// Just goes to show that preprocessors do have some
|
// Just goes to show that preprocessors do have some
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ bool TestRunner::run(const std::vector<std::string>& args)
|
|||||||
bool all = false;
|
bool all = false;
|
||||||
bool wait = false;
|
bool wait = false;
|
||||||
bool printed = false;
|
bool printed = false;
|
||||||
bool long_running = false;
|
bool longRunning = false;
|
||||||
std::string ignore;
|
std::string ignore;
|
||||||
|
|
||||||
std::vector<std::string> setup;
|
std::vector<std::string> setup;
|
||||||
@@ -70,7 +70,7 @@ bool TestRunner::run(const std::vector<std::string>& args)
|
|||||||
}
|
}
|
||||||
else if (arg == "-long")
|
else if (arg == "-long")
|
||||||
{
|
{
|
||||||
long_running = true;
|
longRunning = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (arg == "-ignore")
|
else if (arg == "-ignore")
|
||||||
@@ -134,7 +134,7 @@ bool TestRunner::run(const std::vector<std::string>& args)
|
|||||||
for (std::vector<Test*>::const_iterator it = tests.begin(); it != tests.end(); ++it)
|
for (std::vector<Test*>::const_iterator it = tests.begin(); it != tests.end(); ++it)
|
||||||
{
|
{
|
||||||
Test* testToRun = *it;
|
Test* testToRun = *it;
|
||||||
if(testToRun->getType() == Test::Long && !long_running)
|
if(testToRun->getType() == Test::Long && !longRunning)
|
||||||
continue;
|
continue;
|
||||||
if (setup.size() > 0)
|
if (setup.size() > 0)
|
||||||
testToRun->addSetup(setup);
|
testToRun->addSetup(setup);
|
||||||
|
|||||||
Reference in New Issue
Block a user