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

Function json_format_flag

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

Source from the content-addressed store, hash-verified

161
162 #[test]
163 fn json_format_flag() {
164 let cmd = TeamShow {
165 slug: "backend-eng".to_string(),
166 org: None,
167 format: Some("json".to_string()),
168 };
169 let is_json = cmd
170 .format
171 .as_deref()
172 .map(|f| f.eq_ignore_ascii_case("json"))
173 .unwrap_or(false);
174 assert!(is_json);
175 }
176
177 #[test]
178 fn table_format_is_default() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected