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

Function test_valid_kebab_case_names

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

Source from the content-addressed store, hash-verified

235
236 #[test]
237 fn test_valid_kebab_case_names() {
238 let v = validator();
239 for name in &["my-skill", "a", "skill-123", "a-b-c", "x1-y2"] {
240 let skill = make_skill(name, "content");
241 assert!(
242 v.validate(&skill).is_ok(),
243 "Expected '{}' to be valid",
244 name
245 );
246 }
247 }
248
249 #[test]
250 fn test_invalid_names() {

Callers

nothing calls this directly

Calls 2

validatorFunction · 0.85
make_skillFunction · 0.85

Tested by

no test coverage detected