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

Function test_name_too_long

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

Source from the content-addressed store, hash-verified

477
478 #[test]
479 fn test_name_too_long() {
480 let long_name = "a".repeat(MAX_VIEW_NAME_LENGTH + 1);
481 let result = validate_view_name(&long_name);
482 assert!(result.is_err());
483 assert!(result.unwrap_err().contains("255"));
484 }
485
486 #[test]
487 fn test_invalid_characters() {

Callers

nothing calls this directly

Calls 1

validate_view_nameFunction · 0.70

Tested by

no test coverage detected