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

Source from the content-addressed store, hash-verified

732
733 #[test]
734 fn test_validate_view_name_valid() {
735 let init = Init::new().with_view("main");
736 assert!(init.validate_view_name().is_ok());
737
738 let init = Init::new().with_view("feature-branch");
739 assert!(init.validate_view_name().is_ok());
740
741 let init = Init::new().with_view("v1.0.0");
742 assert!(init.validate_view_name().is_ok());
743 }
744
745 #[test]
746 fn test_validate_view_name_empty() {

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected