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

Function test_custom_max_content

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

Source from the content-addressed store, hash-verified

381
382 #[test]
383 fn test_custom_max_content() {
384 let v = DefaultSkillValidator {
385 max_content_bytes: 100,
386 ..Default::default()
387 };
388 let skill = make_skill("my-skill", &"x".repeat(101));
389 let err = v.validate(&skill).unwrap_err();
390 assert_eq!(err.kind, ValidationErrorKind::ContentTooLarge);
391 }
392
393 // --- is_kebab_case unit tests ---
394

Callers

nothing calls this directly

Calls 2

make_skillFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected