()
| 229 | |
| 230 | #[test] |
| 231 | fn parse_visibility_valid() { |
| 232 | let cmd = ProjectCreate { |
| 233 | name: "p".to_string(), |
| 234 | workspace: Some("w".to_string()), |
| 235 | visibility: "private".to_string(), |
| 236 | ..Default::default() |
| 237 | }; |
| 238 | let v = cmd.parse_visibility().unwrap(); |
| 239 | assert_eq!(v, Visibility::Private); |
| 240 | } |
| 241 | |
| 242 | #[test] |
| 243 | fn parse_visibility_invalid() { |
nothing calls this directly
no test coverage detected