mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-26 09:44:40 +00:00
ref #49 Fixing unitTests
This commit is contained in:
parent
e3de71f50d
commit
20d3e76adc
@ -41,7 +41,7 @@ bool ConfigParser::parseOptions(Config &conf) const {
|
|||||||
}
|
}
|
||||||
pathDirOrFile.setFile(QuasarAppUtils::Params::getArg("sign"));
|
pathDirOrFile.setFile(QuasarAppUtils::Params::getArg("sign"));
|
||||||
|
|
||||||
if (!QFileInfo::exists(pathDirOrFile.absoluteFilePath())) {
|
if (!pathDirOrFile.isFile()) {
|
||||||
QuasarAppUtils::Params::log("The given path does not exist or is not a file signature",
|
QuasarAppUtils::Params::log("The given path does not exist or is not a file signature",
|
||||||
QuasarAppUtils::VerboseLvl::Error);
|
QuasarAppUtils::VerboseLvl::Error);
|
||||||
return false;
|
return false;
|
||||||
|
@ -60,7 +60,7 @@ void ConfigParserTest::testSrcKey() const {
|
|||||||
CopyrighFixer::Config testConfig;
|
CopyrighFixer::Config testConfig;
|
||||||
CopyrighFixer::ConfigParser testParserConf;
|
CopyrighFixer::ConfigParser testParserConf;
|
||||||
|
|
||||||
QVERIFY(!testParserConf.parseOptions(testConfig));
|
QVERIFY(testParserConf.parseOptions(testConfig));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigParserTest::testSrcPath() const {
|
void ConfigParserTest::testSrcPath() const {
|
||||||
@ -71,7 +71,7 @@ void ConfigParserTest::testSrcPath() const {
|
|||||||
CopyrighFixer::Config testConfig;
|
CopyrighFixer::Config testConfig;
|
||||||
CopyrighFixer::ConfigParser testParserConf;
|
CopyrighFixer::ConfigParser testParserConf;
|
||||||
|
|
||||||
QVERIFY(testParserConf.parseOptions(testConfig));
|
QVERIFY(!testParserConf.parseOptions(testConfig));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user