Changeset View
Changeset View
Standalone View
Standalone View
autotests/unit/engine/termgeneratortestutf.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * This file is part of the KDE Baloo project. | ||||
3 | * Copyright (C) 2014-2015 Vishesh Handa <vhanda@kde.org> | ||||
4 | * Copyright (C) 2018 Michael Heidelbach <ottwolt@gmail.com> | ||||
5 | * | ||||
6 | * This library is free software; you can redistribute it and/or | ||||
7 | * modify it under the terms of the GNU Lesser General Public | ||||
8 | * License as published by the Free Software Foundation; either | ||||
9 | * version 2.1 of the License, or (at your option) any later version. | ||||
10 | * | ||||
11 | * This library is distributed in the hope that it will be useful, | ||||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
14 | * Lesser General Public License for more details. | ||||
15 | * | ||||
16 | * You should have received a copy of the GNU Lesser General Public | ||||
17 | * License along with this library; if not, write to the Free Software | ||||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||||
19 | * | ||||
20 | */ | ||||
21 | | ||||
22 | #ifndef TERMGENERATORTESTUTF_H | ||||
23 | #define TERMGENERATORTESTUTF_H | ||||
24 | | ||||
25 | #include "document.h" | ||||
26 | | ||||
27 | #include <QObject> | ||||
28 | namespace Baloo | ||||
29 | { | ||||
30 | | ||||
31 | class TermGeneratorTestUTF : public QObject | ||||
32 | { | ||||
33 | Q_OBJECT | ||||
34 | | ||||
35 | private Q_SLOTS: | ||||
36 | void testWordBoundaries(); | ||||
37 | void testUnderscoreWord(); | ||||
38 | void testUnderscore_splitting(); | ||||
39 | void testAccetCharacters(); | ||||
40 | void testUnicodeCompatibleComposition(); | ||||
41 | void testUnicodeLowering(); | ||||
42 | void testEmails(); | ||||
43 | void testWordPositions(); | ||||
44 | | ||||
45 | void testTermList(); | ||||
46 | void testTermList_data(); | ||||
47 | void testDocumentTerms(); | ||||
48 | void testDocumentTerms_data(); | ||||
49 | | ||||
50 | private: | ||||
51 | const QList<QByteArray> allWords(const Document& doc) | ||||
52 | { | ||||
53 | return doc.m_terms.keys(); | ||||
54 | } | ||||
55 | }; | ||||
56 | | ||||
57 | } | ||||
58 | #endif // TERMGENERATORTESTUTF_H |