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

Function with_all_options

atomic-cli/src/commands/team/create.rs:188–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186
187 #[test]
188 fn with_all_options() {
189 let cmd = TeamCreate {
190 name: "Secret Ops".to_string(),
191 description: Some("Top secret operations".to_string()),
192 visibility: Some("secret".to_string()),
193 org: Some("acme".to_string()),
194 };
195 assert_eq!(cmd.name, "Secret Ops");
196 assert_eq!(cmd.description.as_deref(), Some("Top secret operations"));
197 assert_eq!(cmd.visibility.as_deref(), Some("secret"));
198 assert_eq!(cmd.org.as_deref(), Some("acme"));
199 }
200
201 #[test]
202 fn visibility_parsing_valid() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected