| 1771 | } |
| 1772 | |
| 1773 | void tst_util::gpgErrorMessageKeyExpiredFallback() { |
| 1774 | QString err = "gpg: key DEADBEEF: key has expired\n" |
| 1775 | "gpg: [stdin]: encryption failed: Unusable public key"; |
| 1776 | QString msg = gpgErrorMessage(err); |
| 1777 | QVERIFY2(!msg.isEmpty(), "Should recognise 'key has expired' fallback"); |
| 1778 | QVERIFY2(msg.contains("expired", Qt::CaseInsensitive), |
| 1779 | qPrintable("Expected 'expired' in: " + msg)); |
| 1780 | } |
| 1781 | |
| 1782 | void tst_util::gpgErrorMessageRevokedFallback() { |
| 1783 | QString err = "gpg: key DEADBEEF: key has been revoked\n" |
nothing calls this directly
no test coverage detected