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

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn test_name_too_long() {
558 let long_name = "a".repeat(MAX_VIEW_NAME_LENGTH + 1);
559 let result = validate_view_name(&long_name);
560 assert!(result.is_err());
561 assert!(result.unwrap_err().contains("255"));
562 }
563
564 #[test]
565 fn test_invalid_characters() {

Callers

nothing calls this directly

Calls 1

validate_view_nameFunction · 0.70

Tested by

no test coverage detected