()
| 307 | |
| 308 | #[test] |
| 309 | fn test_new_command_fields() { |
| 310 | let cmd = New { |
| 311 | name: "alice".to_string(), |
| 312 | email: Some("alice@example.com".to_string()), |
| 313 | identity_type: "user".to_string(), |
| 314 | usage: "personal".to_string(), |
| 315 | description: Some("Test identity".to_string()), |
| 316 | set_default: true, |
| 317 | set_default_for_usage: false, |
| 318 | }; |
| 319 | |
| 320 | assert_eq!(cmd.name, "alice"); |
| 321 | assert_eq!(cmd.email, Some("alice@example.com".to_string())); |
| 322 | assert_eq!(cmd.identity_type, "user"); |
| 323 | assert_eq!(cmd.usage, "personal"); |
| 324 | assert_eq!(cmd.description, Some("Test identity".to_string())); |
| 325 | assert!(cmd.set_default); |
| 326 | assert!(!cmd.set_default_for_usage); |
| 327 | } |
| 328 | } |
nothing calls this directly
no outgoing calls
no test coverage detected