Ensure all variants exist and can be matched
(cmd: &ViewCommands)
| 243 | fn test_view_commands_variants() { |
| 244 | // Ensure all variants exist and can be matched |
| 245 | fn check_variant(cmd: &ViewCommands) -> &'static str { |
| 246 | match cmd { |
| 247 | ViewCommands::Create(_) => "create", |
| 248 | ViewCommands::Split(_) => "split", |
| 249 | ViewCommands::Switch(_) => "switch", |
| 250 | ViewCommands::Delete(_) => "delete", |
| 251 | ViewCommands::List(_) => "list", |
| 252 | ViewCommands::Show(_) => "show", |
| 253 | ViewCommands::Promote(_) => "promote", |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | // Create instances of each variant |
| 258 | let new = New::default(); |
nothing calls this directly
no outgoing calls
no test coverage detected