Commit ebe4fcc7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotests

parent b3581b07
Pipeline #67945 passed with stage
in 53 minutes and 2 seconds
......@@ -10,3 +10,4 @@ endmacro ()
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingdialogtest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingwidgettest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingruletest.cpp)
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletingruletest.h"
#include "confirmbeforedeletingrule.h"
#include <QTest>
QTEST_GUILESS_MAIN(ConfirmBeforeDeletingRuleTest)
ConfirmBeforeDeletingRuleTest::ConfirmBeforeDeletingRuleTest(QObject *parent)
: QObject(parent)
{
}
void ConfirmBeforeDeletingRuleTest::shouldHaveDefaultValues()
{
ConfirmBeforeDeletingRule r;
// TODO
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QObject>
class ConfirmBeforeDeletingRuleTest : public QObject
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingRuleTest(QObject *parent = nullptr);
~ConfirmBeforeDeletingRuleTest() override = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
......@@ -5,9 +5,9 @@
*/
#pragma once
#include "kmailconfirmbeforedeleting_export.h"
#include <QString>
class ConfirmBeforeDeletingRule
class KMAILCONFIRMBEFOREDELETING_EXPORT ConfirmBeforeDeletingRule
{
public:
ConfirmBeforeDeletingRule();
......
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