File indexing completed on 2024-04-21 05:44:11
0001 /* 0002 SPDX-FileCopyrightText: 2011 Dmitry Risenberg <dmitry.risenberg@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef INTERACTIVEDIFFTEST_H 0008 #define INTERACTIVEDIFFTEST_H 0009 0010 // lib 0011 #include "difference.h" 0012 // Qt 0013 #include <QObject> 0014 0015 class InteractiveDiffTest : public QObject 0016 { 0017 Q_OBJECT 0018 private Q_SLOTS: 0019 void testOneLineChange(); 0020 void testSameLine(); 0021 void testLineNumbers_data(); 0022 void testLineNumbers(); 0023 void testDifferenceContents_data(); 0024 void testDifferenceContents(); 0025 void testAppliedTouch(); 0026 void testAppliedIntersect(); 0027 void testExistingAndApplied(); 0028 void testOneLineDeletionUnapplied(); 0029 void testApplyUnapply(); 0030 void testContextDiff(); 0031 void testNormalDiff(); 0032 0033 private: 0034 void CompareDifferenceStringList(const KompareDiff2::DifferenceStringList &actual, const QStringList &expected); 0035 }; 0036 0037 #endif // INTERACTIVEDIFFTEST_H