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

Source from the content-addressed store, hash-verified

861
862 #[test]
863 fn test_validate_view_name_valid() {
864 let init = Init::new().with_view("main");
865 assert!(init.validate_view_name().is_ok());
866
867 let init = Init::new().with_view("feature-branch");
868 assert!(init.validate_view_name().is_ok());
869
870 let init = Init::new().with_view("v1.0.0");
871 assert!(init.validate_view_name().is_ok());
872 }
873
874 #[test]
875 fn test_validate_view_name_empty() {

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected