Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Parley
Commits
55172e88
Verified
Commit
55172e88
authored
Aug 29, 2021
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
55172e88
...
...
@@ -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
...
...
autotests/allpass1test.cpp
deleted
100644 → 0
View file @
715876b2
/*
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"
autotests/allpass2test.cpp
deleted
100644 → 0
View file @
715876b2
/*
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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment