Warning, file /utilities/okteta/kasten/controllers/test/searchtooltest.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2023 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef SEARCHTOOLTEST_HPP 0010 #define SEARCHTOOLTEST_HPP 0011 0012 // Okteta 0013 #include <Okteta/AddressRange> 0014 // Qt 0015 #include <QObject> 0016 #include <QByteArray> 0017 0018 struct ViewData 0019 { 0020 Okteta::Address cursorPosition = -1; 0021 Okteta::AddressRange selection; 0022 QByteArray data; 0023 Okteta::AddressRange match; 0024 }; 0025 0026 class SearchToolTest : public QObject 0027 { 0028 Q_OBJECT 0029 0030 private Q_SLOTS: // test functions 0031 void testParseToViewData_data(); 0032 void testParseToViewData(); 0033 0034 void testSearch_data(); 0035 void testSearch(); 0036 0037 private: 0038 ViewData parseToViewData(const QByteArray& viewMarkup) const; 0039 }; 0040 0041 #endif