(cmd: &GitCommands)
| 180 | #[test] |
| 181 | fn test_git_commands_variants() { |
| 182 | fn check_variant(cmd: &GitCommands) -> &'static str { |
| 183 | match cmd { |
| 184 | GitCommands::Shim(_) => "shim", |
| 185 | GitCommands::Import(_) => "import", |
| 186 | GitCommands::Push(_) => "push", |
| 187 | GitCommands::Hooks(_) => "hooks", |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | let shim = Shim::default(); |
| 192 | assert_eq!(check_variant(&GitCommands::Shim(shim)), "shim"); |
nothing calls this directly
no outgoing calls
no test coverage detected