mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-26 09:44:40 +00:00
ref #49 Added method genValidConfig.
This commit is contained in:
parent
a9430cb657
commit
fb33530d8e
@ -29,8 +29,9 @@ bool ConfigParser::parseOptions(Config &conf) const {
|
||||
conf.setSingValue(signature);
|
||||
}
|
||||
else {
|
||||
QuasarAppUtils::Params::log("Warning: Not option sign.",
|
||||
QuasarAppUtils::VerboseLvl::Warning);
|
||||
QuasarAppUtils::Params::log("Error: Not option sign.",
|
||||
QuasarAppUtils::VerboseLvl::Error);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (QuasarAppUtils::Params::isEndable("currentOwner")) {
|
||||
@ -41,7 +42,6 @@ bool ConfigParser::parseOptions(Config &conf) const {
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
#define CONFIGPARSERTEST_H
|
||||
#include "test.h"
|
||||
#include "testutils.h"
|
||||
#include "CopyrighFixer/configparser.h"
|
||||
#include "CopyrighFixer/config.h"
|
||||
|
||||
|
||||
class ConfigParserTest: public Test, protected TestUtils {
|
||||
@ -18,6 +18,7 @@ public:
|
||||
~ConfigParserTest();
|
||||
|
||||
void test();
|
||||
CopyrighFixer::Config genValidConfig(CopyrighFixer::Config &obj) const;
|
||||
void testParsOpt();
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user