mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-07 05:52:33 -04:00
Small ArgumentParser refactoring.
This commit is contained in:
parent
94e6d3f89b
commit
63f7a0685f
4 changed files with 31 additions and 16 deletions
|
@ -31,6 +31,13 @@ void TestArgumentParser::testNoArguments()
|
|||
QVERIFY(argumentMap.isEmpty());
|
||||
}
|
||||
|
||||
void TestArgumentParser::testMissingOptionValue()
|
||||
{
|
||||
parse(QStringList() << "--foo");
|
||||
|
||||
QVERIFY(argumentMap.isEmpty());
|
||||
}
|
||||
|
||||
void TestArgumentParser::testUnknownArgument()
|
||||
{
|
||||
parse(QStringList() << "--foo" << "bar");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue