File indexing completed on 2024-05-12 04:38:55

0001 /*
0002     SPDX-FileCopyrightText: 2017 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_TESTVCSDIFF_H
0008 #define KDEVPLATFORM_TESTVCSDIFF_H
0009 
0010 #include <QObject>
0011 
0012 #include "vcsdiff.h"
0013 
0014 class TestVcsDiff : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 private Q_SLOTS:
0019     void initTestCase();
0020     void testCopyConstructor();
0021     void testAssignOperator();
0022     void testFileNames();
0023     void testSubDiff();
0024     void testLineMapping();
0025     void testConflicts();
0026 
0027 private:
0028     QString sampleDiff;
0029 
0030     void setDiff(KDevelop::VcsDiff& diff,
0031                  const QString& diffString,
0032                  const QUrl& baseDiff,
0033                  uint depth);
0034     void compareDiff(const KDevelop::VcsDiff& diff,
0035                      const QString& diffString,
0036                      const QUrl& baseDiff,
0037                      uint depth);
0038 };
0039 
0040 #endif // KDEVPLATFORM_TESTVCSDIFF_H