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

Function test_validate_view_name_empty

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

Source from the content-addressed store, hash-verified

744
745 #[test]
746 fn test_validate_view_name_empty() {
747 let init = Init::new().with_view("");
748 let result = init.validate_view_name();
749 assert!(result.is_err());
750 let err = result.unwrap_err();
751 assert!(matches!(err, CliError::InvalidArgument { .. }));
752 }
753
754 #[test]
755 fn test_validate_view_name_with_slash() {

Callers

nothing calls this directly

Calls 2

validate_view_nameMethod · 0.80
with_viewMethod · 0.45

Tested by

no test coverage detected