Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
d7c2baba
Commit
d7c2baba
authored
Jun 07, 2018
by
Boudewijn Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add skeleton tests for KisResourceLocator and KisResourceStorage
parent
07a130ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
133 additions
and
0 deletions
+133
-0
libs/resources/tests/CMakeLists.txt
libs/resources/tests/CMakeLists.txt
+2
-0
libs/resources/tests/TestResourceLocator.cpp
libs/resources/tests/TestResourceLocator.cpp
+33
-0
libs/resources/tests/TestResourceLocator.h
libs/resources/tests/TestResourceLocator.h
+33
-0
libs/resources/tests/TestResourceStorage.cpp
libs/resources/tests/TestResourceStorage.cpp
+32
-0
libs/resources/tests/TestResourceStorage.h
libs/resources/tests/TestResourceStorage.h
+33
-0
No files found.
libs/resources/tests/CMakeLists.txt
View file @
d7c2baba
...
...
@@ -8,5 +8,7 @@ macro_add_unittest_definitions()
ecm_add_tests
(
TestResourceCacheDb
TestResourceLoaderRegistry
TestResourceLocator
TestResourceStorage
NAME_PREFIX
"libs-kritaresources-"
LINK_LIBRARIES kritaresources KF5::ConfigCore Qt5::Sql Qt5::Test
)
libs/resources/tests/TestResourceLocator.cpp
0 → 100644
View file @
d7c2baba
/*
* Copyright (C) 2017 Boudewijn Rempt <boud@valdyas.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 "TestResourceLocator.h"
#include <QTest>
#include <KisResourceLocator.h>
void
TestResourceLocator
::
testLocator
()
{
}
QTEST_MAIN
(
TestResourceLocator
)
libs/resources/tests/TestResourceLocator.h
0 → 100644
View file @
d7c2baba
/*
* Copyright (C) 2017 Boudewijn Rempt <boud@valdyas.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 TESTRESOURCELOCATOR_H
#define TESTRESOURCELOCATOR_H
#include <QObject>
class
TestResourceLocator
:
public
QObject
{
Q_OBJECT
private
Q_SLOTS
:
void
testLocator
();
private:
};
#endif
libs/resources/tests/TestResourceStorage.cpp
0 → 100644
View file @
d7c2baba
/*
* Copyright (C) 2017 Boudewijn Rempt <boud@valdyas.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 "TestResourceStorage.h"
#include <QTest>
#include <KisResourceStorage.h>
void
TestResourceStorage
::
testStorage
()
{
}
QTEST_MAIN
(
TestResourceStorage
)
libs/resources/tests/TestResourceStorage.h
0 → 100644
View file @
d7c2baba
/*
* Copyright (C) 2017 Boudewijn Rempt <boud@valdyas.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 TESTRESOURCESTORAGE_H
#define TESTRESOURCESTORAGE_H
#include <QObject>
class
TestResourceStorage
:
public
QObject
{
Q_OBJECT
private
Q_SLOTS
:
void
testStorage
();
private:
};
#endif
Write
Preview
Markdown
is supported
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