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

Function test_validate_view_name_valid

atomic-cli/src/commands/init.rs:741–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

739
740 #[test]
741 fn test_validate_view_name_valid() {
742 let init = Init::new().with_view("main");
743 assert!(init.validate_view_name().is_ok());
744
745 let init = Init::new().with_view("feature-branch");
746 assert!(init.validate_view_name().is_ok());
747
748 let init = Init::new().with_view("v1.0.0");
749 assert!(init.validate_view_name().is_ok());
750 }
751
752 #[test]
753 fn test_validate_view_name_empty() {

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected