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

Function test_content_within_limit

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

Source from the content-addressed store, hash-verified

294
295 #[test]
296 fn test_content_within_limit() {
297 let v = validator();
298 let content = "x".repeat(10 * 1024); // exactly 10KB
299 let skill = make_skill("ok-skill", &content);
300 assert!(v.validate(&skill).is_ok());
301 }
302
303 #[test]
304 fn test_content_exceeds_limit() {

Callers

nothing calls this directly

Calls 2

validatorFunction · 0.85
make_skillFunction · 0.85

Tested by

no test coverage detected