writeSkill creates skills/ /SKILL.md with the given content.
(t *testing.T, dir, name, content string)
| 1593 | |
| 1594 | // writeSkill creates skills/<name>/SKILL.md with the given content. |
| 1595 | func writeSkill(t *testing.T, dir, name, content string) { |
| 1596 | t.Helper() |
| 1597 | skillDir := filepath.Join(dir, "skills", name) |
| 1598 | require.NoError(t, os.MkdirAll(skillDir, 0o755)) |
| 1599 | require.NoError(t, os.WriteFile(filepath.Join(skillDir, "SKILL.md"), []byte(content), 0o644)) |
| 1600 | } |
| 1601 | |
| 1602 | func TestEnsurePushed(t *testing.T) { |
| 1603 | tests := []struct { |
no test coverage detected