(t *testing.T, skillsRoot, name, description string)
| 24 | } |
| 25 | |
| 26 | func writeSkillMetaFileInRoot(t *testing.T, skillsRoot, name, description string) string { |
| 27 | t.Helper() |
| 28 | |
| 29 | skillDir := filepath.Join(skillsRoot, name) |
| 30 | require.NoError(t, os.MkdirAll(skillDir, 0o755)) |
| 31 | require.NoError(t, os.WriteFile( |
| 32 | filepath.Join(skillDir, "SKILL.md"), |
| 33 | []byte("---\nname: "+name+"\ndescription: "+description+"\n---\nSkill body"), |
| 34 | 0o600, |
| 35 | )) |
| 36 | |
| 37 | return skillDir |
| 38 | } |
| 39 | |
| 40 | func writeSkillMetaFile(t *testing.T, dir, name, description string) string { |
| 41 | t.Helper() |
no test coverage detected