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

Function fields_parse

atomic-cli/src/commands/workspace/delete.rs:160–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159 #[test]
160 fn fields_parse() {
161 let cmd = WorkspaceDelete {
162 slug: "old-ws".to_string(),
163 org: Some("acme".to_string()),
164 force: true,
165 };
166 assert_eq!(cmd.slug, "old-ws");
167 assert_eq!(cmd.org.as_deref(), Some("acme"));
168 assert!(cmd.force);
169 }
170
171 #[test]
172 fn default_force_is_false() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected