MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_name_too_long

Function test_name_too_long

core/src/skills/validator.rs:273–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271
272 #[test]
273 fn test_name_too_long() {
274 let v = validator();
275 let long_name: String = (0..65).map(|_| 'a').collect();
276 let skill = make_skill(&long_name, "content");
277 let err = v.validate(&skill).unwrap_err();
278 assert_eq!(err.kind, ValidationErrorKind::InvalidName);
279 }
280
281 // --- Reserved names ---
282

Callers

nothing calls this directly

Calls 3

validatorFunction · 0.85
make_skillFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected