ref #49 Added method genValidConfig.

This commit is contained in:
IgorekLoschinin 2021-05-05 22:48:40 +03:00
parent a9430cb657
commit fb33530d8e
2 changed files with 5 additions and 4 deletions

View File

@ -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;
};
}

View File

@ -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();
};