MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / json_format_case_insensitive

Function json_format_case_insensitive

atomic-cli/src/commands/org/list.rs:230–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228
229 #[test]
230 fn json_format_case_insensitive() {
231 for variant in &["json", "JSON", "Json"] {
232 let cmd = OrgList {
233 server: None,
234 format: Some(variant.to_string()),
235 };
236 let is_json = cmd
237 .format
238 .as_deref()
239 .map(|f| f.eq_ignore_ascii_case("json"))
240 .unwrap_or(false);
241 assert!(is_json, "Expected true for format={variant}");
242 }
243 }
244
245 #[test]
246 fn empty_table_output_includes_hint() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected