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:747–756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

745
746 #[test]
747 fn test_validate_view_name_valid() {
748 let init = Init::new().with_view("main");
749 assert!(init.validate_view_name().is_ok());
750
751 let init = Init::new().with_view("feature-branch");
752 assert!(init.validate_view_name().is_ok());
753
754 let init = Init::new().with_view("v1.0.0");
755 assert!(init.validate_view_name().is_ok());
756 }
757
758 #[test]
759 fn test_validate_view_name_empty() {

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected