diff --git a/local/recipes/tui/tlc/source/src/keymap/mod.rs b/local/recipes/tui/tlc/source/src/keymap/mod.rs index b59aa50006..60e88a3867 100644 --- a/local/recipes/tui/tlc/source/src/keymap/mod.rs +++ b/local/recipes/tui/tlc/source/src/keymap/mod.rs @@ -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()); + } }