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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

validate_view_nameFunction · 0.70

Tested by

no test coverage detected