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

Function check_variant

atomic-cli/src/commands/workspace/mod.rs:204–214  ·  view source on GitHub ↗
(cmd: &WorkspaceCommands)

Source from the content-addressed store, hash-verified

202 #[test]
203 fn test_workspace_commands_variants() {
204 fn check_variant(cmd: &WorkspaceCommands) -> &'static str {
205 match cmd {
206 WorkspaceCommands::List(_) => "list",
207 WorkspaceCommands::Create(_) => "create",
208 WorkspaceCommands::Show(_) => "show",
209 WorkspaceCommands::Update(_) => "update",
210 WorkspaceCommands::Delete(_) => "delete",
211 WorkspaceCommands::Set(_) => "set",
212 WorkspaceCommands::Grant(_) => "grant",
213 }
214 }
215
216 let list = WorkspaceList::default();
217 let create = WorkspaceCreate::default();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected