Verified Commit 55172e88 authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Remove dead test code

This has not been build for years and does not provide any value which is worth porting
parent 715876b2
......@@ -50,11 +50,6 @@ endmacro()
include_directories( ${unittest_INCLUDE_DIRS})
parley_gui_unittests(
#todo restore dummy unit test when file locking is fixed
# allpass1test
allpass2test.cpp
)
parley_non_gui_unittests(
testentrytest.cpp
sessionmanagerfixedtest.cpp
......
/*
SPDX-FileCopyrightText: 2014 Andreas Xavier <andxav at zoho dot com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "parleyunittestutilities.h"
#include "parleydocument.h"
#include <QtTest>
using namespace UnitTestUtilities;
/** This class is a unittest stub with 2 tests that always pass
*/
class AllPass1Test : public QObject
{
Q_OBJECT
private slots: // must be private
/** Test that always passes*/
void testAlwaysPass1();
/** Test that always passes*/
void testAlwaysPass2();
};
void AllPass1Test::testAlwaysPass1()
{
QCOMPARE(true, true);
}
void AllPass1Test::testAlwaysPass2()
{
// This just forces these to link and test the CMake file
MinimalTempVocDoc tempfile;
KEduVocDocument *docWithLock = new KEduVocDocument();
int docError = docWithLock->open(tempfile.fileName());
QCOMPARE(docError, int(KEduVocDocument::NoError));
KUrl kurl = KUrl::fromPath(tempfile.fileName());
// ParleyDocument *doc = new ParleyDocument(0);
QVERIFY(doc != NULL);
}
QTEST_MAIN(AllPass1Test)
#include "allpass1test.moc"
/*
SPDX-FileCopyrightText: 2014 Andreas Xavier <andxav at zoho dot com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "parleyunittestutilities.h"
#include "parleydocument.h"
#include <QTest>
/** This class is a unittest stub with 2 tests that always pass
*/
class AllPass2Test : public QObject
{
Q_OBJECT
private slots: // must be private
/** Test that always passes*/
void testAlwaysPass1();
/** Test that always passes*/
void testAlwaysPass2();
};
void AllPass2Test::testAlwaysPass1()
{
QCOMPARE(true, true);
}
void AllPass2Test::testAlwaysPass2()
{
QCOMPARE(true, true);
}
QTEST_APPLESS_MAIN(AllPass2Test)
#include "allpass2test.moc"
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