| 1707 | // --- gpgErrorMessage tests --- |
| 1708 | |
| 1709 | void tst_util::gpgErrorMessageKeyExpiredStatusToken() { |
| 1710 | QString err = "[GNUPG:] KEYEXPIRED 1234567890\n" |
| 1711 | "gpg: key DEADBEEF: key has expired\n" |
| 1712 | "gpg: [stdin]: encryption failed: Unusable public key"; |
| 1713 | QString msg = gpgErrorMessage(err); |
| 1714 | QVERIFY2(!msg.isEmpty(), "Should recognise KEYEXPIRED status token"); |
| 1715 | QVERIFY2(msg.contains("expired", Qt::CaseInsensitive), |
| 1716 | qPrintable("Expected 'expired' in: " + msg)); |
| 1717 | } |
| 1718 | |
| 1719 | void tst_util::gpgErrorMessageKeyRevokedStatusToken() { |
| 1720 | QString err = "[GNUPG:] KEYREVOKED\n" |
nothing calls this directly
no test coverage detected