MCPcopy Create free account
hub / github.com/IJHack/QtPass / gpgErrorMessageKeyExpiredFallback

Method gpgErrorMessageKeyExpiredFallback

tests/auto/util/tst_util.cpp:1773–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1771}
1772
1773void 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
1782void tst_util::gpgErrorMessageRevokedFallback() {
1783 QString err = "gpg: key DEADBEEF: key has been revoked\n"

Callers

nothing calls this directly

Calls 1

gpgErrorMessageFunction · 0.85

Tested by

no test coverage detected