File indexing completed on 2025-01-19 04:22:42

0001 /*
0002 SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
0003 
0004 SPDX-License-Identifier: GPL-3.0-or-later
0005 */
0006 
0007 #include "addsubmodulecommandtest.h"
0008 #include "commands/addsubmodulecommand.h"
0009 #include <QTest>
0010 QTEST_MAIN(AddSubmoduleCommandTest)
0011 AddSubmoduleCommandTest::AddSubmoduleCommandTest(QObject *parent)
0012     : QObject{parent}
0013 {
0014 }
0015 
0016 void AddSubmoduleCommandTest::shouldHaveDefaultValues()
0017 {
0018     Git::AddSubmoduleCommand command(nullptr);
0019     QVERIFY(command.localPath().isEmpty());
0020     QVERIFY(command.branch().isEmpty());
0021     QVERIFY(!command.force());
0022 }