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

Function json_format_case_insensitive

atomic-cli/src/commands/team/show.rs:193–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected