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

Function parse_visibility_valid

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

Source from the content-addressed store, hash-verified

229
230 #[test]
231 fn parse_visibility_valid() {
232 let cmd = ProjectCreate {
233 name: "p".to_string(),
234 workspace: Some("w".to_string()),
235 visibility: "private".to_string(),
236 ..Default::default()
237 };
238 let v = cmd.parse_visibility().unwrap();
239 assert_eq!(v, Visibility::Private);
240 }
241
242 #[test]
243 fn parse_visibility_invalid() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_visibilityMethod · 0.45

Tested by

no test coverage detected