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

Function test_dot_restrictions

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

Source from the content-addressed store, hash-verified

583
584 #[test]
585 fn test_dot_restrictions() {
586 assert!(validate_view_name(".hidden").is_err());
587 assert!(validate_view_name("trailing.").is_err());
588 // Dots in the middle are allowed
589 assert!(validate_view_name("feature.auth").is_ok());
590 assert!(validate_view_name("v1.0.0").is_ok());
591 }
592
593 // -------------------------------------------------------------------------
594 // Command Builder Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected