MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / check_variant

Function check_variant

atomic-cli/src/commands/git/mod.rs:182–189  ·  view source on GitHub ↗
(cmd: &GitCommands)

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected