()
| 177 | |
| 178 | #[test] |
| 179 | fn json_format_case_insensitive() { |
| 180 | for variant in &["json", "JSON", "Json"] { |
| 181 | let cmd = TeamList { |
| 182 | org: None, |
| 183 | format: Some(variant.to_string()), |
| 184 | }; |
| 185 | let is_json = cmd |
| 186 | .format |
| 187 | .as_deref() |
| 188 | .map(|f| f.eq_ignore_ascii_case("json")) |
| 189 | .unwrap_or(false); |
| 190 | assert!(is_json, "Expected true for format={variant}"); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | #[test] |
| 195 | fn table_format_explicit() { |
nothing calls this directly
no outgoing calls
no test coverage detected