()
| 191 | |
| 192 | #[test] |
| 193 | fn json_format_case_insensitive() { |
| 194 | for variant in &["json", "JSON", "Json"] { |
| 195 | let cmd = TeamShow { |
| 196 | slug: "test".to_string(), |
| 197 | org: None, |
| 198 | format: Some(variant.to_string()), |
| 199 | }; |
| 200 | let is_json = cmd |
| 201 | .format |
| 202 | .as_deref() |
| 203 | .map(|f| f.eq_ignore_ascii_case("json")) |
| 204 | .unwrap_or(false); |
| 205 | assert!(is_json, "Expected true for format={variant}"); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | #[test] |
| 210 | fn slug_with_hyphens() { |
nothing calls this directly
no outgoing calls
no test coverage detected