diff --git a/src/CopyrighFixer/CopyrighFixer/configparser.cpp b/src/CopyrighFixer/CopyrighFixer/configparser.cpp index 140ef17..ed36f51 100644 --- a/src/CopyrighFixer/CopyrighFixer/configparser.cpp +++ b/src/CopyrighFixer/CopyrighFixer/configparser.cpp @@ -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; - }; } diff --git a/tests/units/configparsertest.h b/tests/units/configparsertest.h index 7d1fd3b..969235c 100644 --- a/tests/units/configparsertest.h +++ b/tests/units/configparsertest.h @@ -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(); };