W78: Keymap tests for Ctrl-X chords + VFS connect Cmds

Add 2 keymap test blocks:
- all_ctrl_x_chord_cmds_have_names: verifies all 21 Ctrl-X chord
  Cmd variants have nonempty description strings
- connect_cmds_have_names: verifies ConnectFtp/Shell/Sftp

Tests: 1434 pass (was 1432), zero warnings.
This commit is contained in:
2026-07-08 14:58:32 +03:00
parent 703d6c8cea
commit 3b03e2ef5e
@@ -680,4 +680,26 @@ mod tests {
fn appearance_has_nonempty_name() {
assert!(!Cmd::Appearance.name().is_empty());
}
#[test]
fn all_ctrl_x_chord_cmds_have_names() {
let chords = [
Cmd::CompareDirs, Cmd::CompareFiles, Cmd::Chattr, Cmd::Jobs,
Cmd::Permission, Cmd::Owner, Cmd::Link, Cmd::Symlink,
Cmd::SymlinkRelative, Cmd::SymlinkEdit, Cmd::VfsList, Cmd::Panelize,
Cmd::PanelInfo, Cmd::PanelQuickView, Cmd::HotList, Cmd::InsertCurPath,
Cmd::InsertOtherPath, Cmd::InsertCurFile, Cmd::InsertOtherFile,
Cmd::InsertCurTagged, Cmd::InsertOtherTagged,
];
for cmd in chords {
assert!(!cmd.name().is_empty(), "{cmd:?} has no name");
}
}
#[test]
fn connect_cmds_have_names() {
assert!(!Cmd::ConnectFtp.name().is_empty());
assert!(!Cmd::ConnectShell.name().is_empty());
assert!(!Cmd::ConnectSftp.name().is_empty());
}
}