| 1799 | } |
| 1800 | |
| 1801 | void 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 | |
| 1810 | void tst_util::gpgErrorMessageUnknownReturnsEmpty() { |
| 1811 | QString err = "some unrelated process error output"; |
nothing calls this directly
no test coverage detected