()
| 220 | |
| 221 | #[test] |
| 222 | fn test_org_commands_variants() { |
| 223 | fn check_variant(cmd: &OrgCommands) -> &'static str { |
| 224 | match cmd { |
| 225 | OrgCommands::Show(_) => "show", |
| 226 | OrgCommands::Create(_) => "create", |
| 227 | OrgCommands::List(_) => "list", |
| 228 | OrgCommands::Update(_) => "update", |
| 229 | OrgCommands::Delete(_) => "delete", |
| 230 | OrgCommands::Upgrade(_) => "upgrade", |
| 231 | OrgCommands::Set(_) => "set", |
| 232 | OrgCommands::Member(_) => "member", |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | // Verify variant names match expectations |
| 237 | let show = show::OrgShow { |
| 238 | slug: None, |
| 239 | format: None, |
| 240 | org: None, |
| 241 | }; |
| 242 | assert_eq!(check_variant(&OrgCommands::Show(show)), "show"); |
| 243 | |
| 244 | let create = create::OrgCreate { |
| 245 | name: "Test".to_string(), |
| 246 | email: None, |
| 247 | }; |
| 248 | assert_eq!(check_variant(&OrgCommands::Create(create)), "create"); |
| 249 | |
| 250 | let set = set::OrgSet { |
| 251 | slug: "test".to_string(), |
| 252 | no_verify: false, |
| 253 | }; |
| 254 | assert_eq!(check_variant(&OrgCommands::Set(set)), "set"); |
| 255 | } |
| 256 | } |
nothing calls this directly
no outgoing calls
no test coverage detected