Skip to content

Commit 0643ef4

Browse files
nogeenharrieclaude
andauthored
test: cover useGrepSearch, showProcessOutput, sshAuthSockOverride settings (#1494)
Three settings were missing from the data-driven round-trip tables: - isUseGrepSearch / setUseGrepSearch → added to boolSettings (2 rows) - isShowProcessOutput / setShowProcessOutput → added to boolSettings (2 rows) - getSshAuthSockOverride / setSshAuthSockOverride → added to stringSettings and two addString rows (socket path + empty string) Total: 102 → 113 passing test rows. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c392215 commit 0643ef4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/auto/settings/tst_settings.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ const BoolSetting boolSettings[] = {
221221
{"useAutoclearPanel", QtPassSettings::setUseAutoclearPanel,
222222
QtPassSettings::isUseAutoclearPanel},
223223
{"maximized", QtPassSettings::setMaximized, QtPassSettings::isMaximized},
224+
{"useGrepSearch", QtPassSettings::setUseGrepSearch,
225+
QtPassSettings::isUseGrepSearch},
226+
{"showProcessOutput", QtPassSettings::setShowProcessOutput,
227+
QtPassSettings::isShowProcessOutput},
224228
};
225229
} // namespace
226230

@@ -307,6 +311,8 @@ const StringSetting stringSettings[] = {
307311
{"profile", QtPassSettings::setProfile, QtPassSettings::getProfile},
308312
{"passTemplate", QtPassSettings::setPassTemplate,
309313
QtPassSettings::getPassTemplate},
314+
{"sshAuthSockOverride", QtPassSettings::setSshAuthSockOverride,
315+
QtPassSettings::getSshAuthSockOverride},
310316
};
311317
} // namespace
312318

@@ -366,6 +372,8 @@ void tst_settings::stringRoundTrip_data() {
366372
addString("profile", "personal");
367373
addString("passTemplate", "username: {username}\npassword: {password}");
368374
addString("passTemplate", "user: {username}\npass: {password}");
375+
addString("sshAuthSockOverride", "/run/user/1000/gnupg/S.gpg-agent.ssh");
376+
addString("sshAuthSockOverride", "");
369377
}
370378

371379
void tst_settings::stringRoundTrip() {

0 commit comments

Comments
 (0)