File indexing completed on 2024-12-22 04:28:22
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "voskdownloadlanguagejobtest.h" 0008 #include "voskdownloadlanguagejob.h" 0009 #include <QTest> 0010 0011 QTEST_GUILESS_MAIN(VoskDownloadLanguageJobTest) 0012 VoskDownloadLanguageJobTest::VoskDownloadLanguageJobTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void VoskDownloadLanguageJobTest::shouldHaveDefaultValues() 0018 { 0019 VoskDownloadLanguageJob w; 0020 QVERIFY(!w.canStart()); 0021 QVERIFY(!w.info().isValid()); 0022 0023 VoskDownloadLanguageJob::DownloadLanguageInfo info; 0024 QVERIFY(info.url.isEmpty()); 0025 QVERIFY(info.checksum.isEmpty()); 0026 QVERIFY(info.name.isEmpty()); 0027 } 0028 0029 #include "moc_voskdownloadlanguagejobtest.cpp"