File indexing completed on 2024-05-19 15:45:50
0001 /* 0002 This file was partly taken from KDevelop's cvs plugin 0003 SPDX-FileCopyrightText: 2007 Robert Gruber <rgruber@users.sourceforge.net> 0004 0005 Adapted for Git 0006 SPDX-FileCopyrightText: 2008 Evgeniy Ivanov <powerfox@kde.ru> 0007 0008 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0009 */ 0010 0011 #ifndef KDEVPLATFORM_PLUGIN_GIT_INIT_H 0012 #define KDEVPLATFORM_PLUGIN_GIT_INIT_H 0013 0014 #include <QObject> 0015 0016 class GitPlugin; 0017 0018 namespace KDevelop 0019 { 0020 class TestCore; 0021 } 0022 0023 class GitInitTest: public QObject 0024 { 0025 Q_OBJECT 0026 0027 private: 0028 void repoInit(); 0029 void addFiles(); 0030 void commitFiles(); 0031 0032 private Q_SLOTS: 0033 void initTestCase(); 0034 void cleanupTestCase(); 0035 void init(); 0036 void cleanup(); 0037 0038 void testInit(); 0039 void testReadAndSetConfigOption(); 0040 void testAdd(); 0041 void testCommit(); 0042 void testBranching(); 0043 void testBranch(const QString &branchName); 0044 void testMerge(); 0045 void revHistory(); 0046 void testAnnotation(); 0047 void testRemoveEmptyFolder(); 0048 void testRemoveEmptyFolderInFolder(); 0049 void testRemoveUnindexedFile(); 0050 void testRemoveFolderContainingUnversionedFiles(); 0051 void testDiff(); 0052 void testStash(); 0053 0054 private: 0055 GitPlugin* m_plugin; 0056 void removeTempDirs(); 0057 }; 0058 0059 #endif