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

Function json_format_case_insensitive

atomic-cli/src/commands/team/list.rs:179–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected