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

Function test_valid_view_names

atomic-cli/src/commands/view/new.rs:535–547  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

533
534 #[test]
535 fn test_valid_view_names() {
536 assert!(validate_view_name("main").is_ok());
537 assert!(validate_view_name("dev").is_ok());
538 assert!(validate_view_name("feature-auth").is_ok());
539 assert!(validate_view_name("feature_auth").is_ok());
540 assert!(validate_view_name("bugfix-123").is_ok());
541 assert!(validate_view_name("release-1.0.0").is_ok());
542 assert!(validate_view_name("user@domain").is_ok());
543 assert!(validate_view_name("CamelCase").is_ok());
544 assert!(validate_view_name("UPPERCASE").is_ok());
545 assert!(validate_view_name("a").is_ok());
546 assert!(validate_view_name("123").is_ok());
547 }
548
549 #[test]
550 fn test_empty_name() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected