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

Function fields_are_stored

atomic-cli/src/commands/workspace/create.rs:151–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150 #[test]
151 fn fields_are_stored() {
152 let cmd = WorkspaceCreate {
153 name: "my-ws".to_string(),
154 description: Some("A workspace".to_string()),
155 visibility: "public".to_string(),
156 org: Some("acme".to_string()),
157 };
158 assert_eq!(cmd.name, "my-ws");
159 assert_eq!(cmd.description.as_deref(), Some("A workspace"));
160 assert_eq!(cmd.visibility, "public");
161 assert_eq!(cmd.org.as_deref(), Some("acme"));
162 }
163
164 #[test]
165 fn parse_visibility_valid() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected