File indexing completed on 2025-03-09 05:11:39
0001 /* 0002 SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 namespace Git 0012 { 0013 class Manager; 0014 }; 0015 0016 class FileTest : public QObject 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit FileTest(QObject *parent = nullptr); 0021 ~FileTest() override = default; 0022 0023 private Q_SLOTS: 0024 void initTestCase(); 0025 void cleanupTestCase(); 0026 0027 void makeFirstCommit(); 0028 void makeSecondCommit(); 0029 void makeThirdCommit(); 0030 void checkContents(); 0031 void checkContentInBranch(); 0032 0033 private: 0034 Git::Manager *mManager; 0035 0036 QString mFileContentAtFirstCommit; 0037 QString mFileContentAtSecondCommit; 0038 QString mFileContentAtThirdCommit; 0039 };