mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Small ArgumentParser refactoring.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -27,6 +27,7 @@ class TestArgumentParser : public QObject
|
||||
|
||||
private Q_SLOTS:
|
||||
void testNoArguments();
|
||||
void testMissingOptionValue();
|
||||
void testUnknownArgument();
|
||||
void testFilename();
|
||||
void testMultipleArguments();
|
||||
|
||||
Reference in New Issue
Block a user