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

Function test_content_exceeds_limit

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

Source from the content-addressed store, hash-verified

302
303 #[test]
304 fn test_content_exceeds_limit() {
305 let v = validator();
306 let content = "x".repeat(10 * 1024 + 1); // 10KB + 1
307 let skill = make_skill("ok-skill", &content);
308 let err = v.validate(&skill).unwrap_err();
309 assert_eq!(err.kind, ValidationErrorKind::ContentTooLarge);
310 }
311
312 // --- Dangerous tools ---
313

Callers

nothing calls this directly

Calls 3

validatorFunction · 0.85
make_skillFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected