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

Method gpgErrorMessageKeyExpiredStatusToken

tests/auto/util/tst_util.cpp:1709–1717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1707// --- gpgErrorMessage tests ---
1708
1709void 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
1719void tst_util::gpgErrorMessageKeyRevokedStatusToken() {
1720 QString err = "[GNUPG:] KEYREVOKED\n"

Callers

nothing calls this directly

Calls 1

gpgErrorMessageFunction · 0.85

Tested by

no test coverage detected