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

Method gpgErrorMessageEncryptionFailedFallback

tests/auto/util/tst_util.cpp:1801–1808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1799}
1800
1801void tst_util::gpgErrorMessageEncryptionFailedFallback() {
1802 QString err = "gpg: [stdin]: encryption failed: Unusable public key";
1803 QString msg = gpgErrorMessage(err);
1804 QVERIFY2(!msg.isEmpty(),
1805 "Should recognise generic 'encryption failed' fallback");
1806 QVERIFY2(msg.contains("failed", Qt::CaseInsensitive),
1807 qPrintable("Expected 'failed' in: " + msg));
1808}
1809
1810void tst_util::gpgErrorMessageUnknownReturnsEmpty() {
1811 QString err = "some unrelated process error output";

Callers

nothing calls this directly

Calls 1

gpgErrorMessageFunction · 0.85

Tested by

no test coverage detected