()
| 200 | |
| 201 | #[test] |
| 202 | fn json_format() { |
| 203 | let cmd = OrgList { |
| 204 | server: None, |
| 205 | format: Some("json".to_string()), |
| 206 | }; |
| 207 | let is_json = cmd |
| 208 | .format |
| 209 | .as_deref() |
| 210 | .map(|f| f.eq_ignore_ascii_case("json")) |
| 211 | .unwrap_or(false); |
| 212 | assert!(is_json); |
| 213 | } |
| 214 | |
| 215 | #[test] |
| 216 | fn table_format_is_default() { |
nothing calls this directly
no outgoing calls
no test coverage detected