()
| 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 |
nothing calls this directly
no test coverage detected