File: querytest.h

package info (click to toggle)
kpackage 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,024 kB
  • sloc: cpp: 3,682; sh: 18; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
    SPDX-FileCopyrightText: 2007 Aaron Seigo <aseigo@kde.org>
    SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef PACKAGESTRUCTURETEST_H
#define PACKAGESTRUCTURETEST_H

#include <QTest>

#include "kpackage/package.h"

class QueryTest : public QObject
{
    Q_OBJECT

private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();
    void installAndQuery();

    void queryCustomPlugin();
    // Tests a package without ServiceTypes can be listed
    void noServiceTypesPackage();

private:
    KPackage::Package ps;
    QDir m_dataDir;
};

#endif