Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 334f6ebc authored by Laurent Montel's avatar Laurent Montel 😁

Add more unittest

parent 9783b20b
......@@ -209,6 +209,16 @@ void TemplateParserTester::test_processWithTemplatesForContent_data()
QTest::newRow( file.toLatin1() ) << "%MSGID" << fileName << "<20150@foo.kde.org>" << false;
QTest::newRow( file.toLatin1() ) << "%SYSTEM=\"echo foo\"" << fileName << "foo\n" << false;
QTest::newRow( file.toLatin1() ) << "%DEBUG" << fileName << "" << false;
QTest::newRow( file.toLatin1() ) << "%DEBUGOFF" << fileName << "" << false;
QTest::newRow( file.toLatin1() ) << "%HEADER=\"Reply-To\"" << fileName << "bla@yoohoo.org" << false;
//Header doesn't exist => don't add value
QTest::newRow( file.toLatin1() ) << "%HEADER=\"SSS\"" << fileName << "" << false;
QTest::newRow( file.toLatin1() ) << "%OHEADER=\"To\"" << fileName << "kde <foo@yoohoo.org>" << false;
//Unknown command
QTest::newRow( file.toLatin1() ) << "%GGGGG" << fileName << "%GGGGG" << false;
}
void TemplateParserTester::test_processWithTemplatesForContent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment