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

Function test_normal_content_passes

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

Source from the content-addressed store, hash-verified

365
366 #[test]
367 fn test_normal_content_passes() {
368 let v = validator();
369 let safe_contents = &[
370 "# Code Review\n\nReview code for best practices.",
371 "You are a helpful coding assistant.\n\n## Rules\n1. Be concise",
372 "Search for patterns in the codebase using grep and glob.",
373 ];
374 for content in safe_contents {
375 let skill = make_skill("good-skill", content);
376 assert!(v.validate(&skill).is_ok());
377 }
378 }
379
380 // --- Custom validator ---
381

Callers

nothing calls this directly

Calls 2

validatorFunction · 0.85
make_skillFunction · 0.85

Tested by

no test coverage detected