()
| 265 | |
| 266 | #[test] |
| 267 | fn test_parse_usage_work() { |
| 268 | let cmd = New { |
| 269 | name: "test".to_string(), |
| 270 | email: None, |
| 271 | identity_type: "user".to_string(), |
| 272 | usage: "work".to_string(), |
| 273 | description: None, |
| 274 | set_default: false, |
| 275 | set_default_for_usage: false, |
| 276 | }; |
| 277 | assert!(cmd.parse_usage().is_work()); |
| 278 | } |
| 279 | |
| 280 | #[test] |
| 281 | fn test_parse_usage_community() { |
nothing calls this directly
no outgoing calls
no test coverage detected