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

Function test_json_format

atomic-cli/src/commands/project/show.rs:139–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138 #[test]
139 fn test_json_format() {
140 let cmd = ProjectShow {
141 slug: "ws/proj".to_string(),
142 org: Some("acme".to_string()),
143 format: "json".to_string(),
144 };
145 assert_eq!(cmd.format, "json");
146 assert_eq!(cmd.org.as_deref(), Some("acme"));
147 }
148
149 #[test]
150 fn test_invalid_slug_format() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected