File indexing completed on 2024-12-01 04:35:26
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "personalaccesstokeninfotest.h" 0007 #include "personalaccesstokens/personalaccesstokeninfo.h" 0008 #include <QTest> 0009 QTEST_GUILESS_MAIN(PersonalAccessTokenInfoTest) 0010 PersonalAccessTokenInfoTest::PersonalAccessTokenInfoTest(QObject *parent) 0011 : QObject{parent} 0012 { 0013 } 0014 0015 void PersonalAccessTokenInfoTest::shouldHaveDefaultValues() 0016 { 0017 PersonalAccessTokenInfo w; 0018 QVERIFY(!w.bypassTwoFactor()); 0019 QVERIFY(w.name().isEmpty()); 0020 QVERIFY(w.lastTokenPart().isEmpty()); 0021 QVERIFY(!w.isValid()); 0022 } 0023 0024 #include "moc_personalaccesstokeninfotest.cpp"