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

Function parse_visibility_invalid

atomic-cli/src/commands/project/create.rs:244–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242
243 #[test]
244 fn parse_visibility_invalid() {
245 let cmd = ProjectCreate {
246 name: "p".to_string(),
247 workspace: Some("w".to_string()),
248 visibility: "bogus".to_string(),
249 ..Default::default()
250 };
251 assert!(cmd.parse_visibility().is_err());
252 }
253
254 #[test]
255 fn empty_name_rejected() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected