mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-28 10:44:43 +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);
|
conf.setSingValue(signature);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QuasarAppUtils::Params::log("Warning: Not option sign.",
|
QuasarAppUtils::Params::log("Error: Not option sign.",
|
||||||
QuasarAppUtils::VerboseLvl::Warning);
|
QuasarAppUtils::VerboseLvl::Error);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (QuasarAppUtils::Params::isEndable("currentOwner")) {
|
if (QuasarAppUtils::Params::isEndable("currentOwner")) {
|
||||||
@ -41,7 +42,6 @@ bool ConfigParser::parseOptions(Config &conf) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#define CONFIGPARSERTEST_H
|
#define CONFIGPARSERTEST_H
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
#include "testutils.h"
|
#include "testutils.h"
|
||||||
#include "CopyrighFixer/configparser.h"
|
#include "CopyrighFixer/config.h"
|
||||||
|
|
||||||
|
|
||||||
class ConfigParserTest: public Test, protected TestUtils {
|
class ConfigParserTest: public Test, protected TestUtils {
|
||||||
@ -18,6 +18,7 @@ public:
|
|||||||
~ConfigParserTest();
|
~ConfigParserTest();
|
||||||
|
|
||||||
void test();
|
void test();
|
||||||
|
CopyrighFixer::Config genValidConfig(CopyrighFixer::Config &obj) const;
|
||||||
void testParsOpt();
|
void testParsOpt();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user