()
| 209 | |
| 210 | #[test] |
| 211 | fn with_all_options() { |
| 212 | let cmd = ProjectCreate { |
| 213 | name: "svc".to_string(), |
| 214 | workspace: Some("backend".to_string()), |
| 215 | description: Some("A microservice".to_string()), |
| 216 | kind: Some("rust".to_string()), |
| 217 | default_view: "main".to_string(), |
| 218 | visibility: "public".to_string(), |
| 219 | org: Some("acme".to_string()), |
| 220 | server: None, |
| 221 | }; |
| 222 | assert_eq!(cmd.name, "svc"); |
| 223 | assert_eq!(cmd.workspace.as_deref(), Some("backend")); |
| 224 | assert_eq!(cmd.description.as_deref(), Some("A microservice")); |
| 225 | assert_eq!(cmd.kind.as_deref(), Some("rust")); |
| 226 | assert_eq!(cmd.default_view, "main"); |
| 227 | assert_eq!(cmd.visibility, "public"); |
| 228 | assert_eq!(cmd.org.as_deref(), Some("acme")); |
| 229 | } |
| 230 | |
| 231 | #[test] |
| 232 | fn parse_visibility_valid() { |
nothing calls this directly
no outgoing calls
no test coverage detected