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
Utilities
KDebugSettings
Commits
fcf767b3
Commit
fcf767b3
authored
Dec 17, 2020
by
Laurent Montel
😁
Browse files
Add autotest
parent
7b6665c6
Pipeline
#44362
passed with stage
in 8 minutes and 49 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
fcf767b3
...
...
@@ -37,3 +37,4 @@ add_unittest( renamecategorytest.cpp "")
add_unittest
(
saverulesjobtest.cpp
""
)
add_unittest
(
kdebugsettingsloadingcategoriestest.cpp
""
)
add_unittest
(
changedebugmodejobtest.cpp
""
)
add_unittest
(
loadgroupmenutest.cpp
""
)
autotests/loadgroupmenutest.cpp
0 → 100644
View file @
fcf767b3
/*
Copyright (c) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "loadgroupmenutest.h"
#include "loadgroupmenu.h"
#include <QTest>
QTEST_MAIN
(
LoadGroupMenuTest
)
LoadGroupMenuTest
::
LoadGroupMenuTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
void
LoadGroupMenuTest
::
shouldHaveDefaultValues
()
{
LoadGroupMenu
m
;
//TODO
}
autotests/loadgroupmenutest.h
0 → 100644
View file @
fcf767b3
/*
Copyright (c) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef LOADGROUPMENUTEST_H
#define LOADGROUPMENUTEST_H
#include <QObject>
class
LoadGroupMenuTest
:
public
QObject
{
Q_OBJECT
public:
explicit
LoadGroupMenuTest
(
QObject
*
parent
=
nullptr
);
~
LoadGroupMenuTest
()
override
=
default
;
private
Q_SLOTS
:
void
shouldHaveDefaultValues
();
};
#endif // LOADGROUPMENUTEST_H
src/loadgroupmenu.h
View file @
fcf767b3
...
...
@@ -22,12 +22,12 @@
#define LOADGROUPMENU_H
#include <QMenu>
class
LoadGroupMenu
:
public
QMenu
#include "libkdebugsettings_private_export.h"
class
LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT
LoadGroupMenu
:
public
QMenu
{
Q_OBJECT
public:
explicit
LoadGroupMenu
(
QWidget
*
parent
);
explicit
LoadGroupMenu
(
QWidget
*
parent
=
nullptr
);
~
LoadGroupMenu
()
override
;
private:
void
init
();
...
...
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