()
| 214 | |
| 215 | #[test] |
| 216 | fn command_fields() { |
| 217 | let cmd = ProjectInit { |
| 218 | name: "my-app".to_string(), |
| 219 | workspace: Some("my-ws".to_string()), |
| 220 | kind: Some("rust".to_string()), |
| 221 | description: Some("My app".to_string()), |
| 222 | visibility: Visibility::Private, |
| 223 | org: None, |
| 224 | }; |
| 225 | |
| 226 | assert_eq!(cmd.name, "my-app"); |
| 227 | assert_eq!(cmd.workspace.as_deref(), Some("my-ws")); |
| 228 | assert_eq!(cmd.kind.as_deref(), Some("rust")); |
| 229 | assert_eq!(cmd.description.as_deref(), Some("My app")); |
| 230 | assert_eq!(cmd.visibility, Visibility::Private); |
| 231 | assert!(cmd.org.is_none()); |
| 232 | } |
| 233 | |
| 234 | #[test] |
| 235 | fn default_visibility_is_private() { |
nothing calls this directly
no outgoing calls
no test coverage detected