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

Function parse_visibility_valid

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_visibilityMethod · 0.45

Tested by

no test coverage detected