MCPcopy Create free account
hub / github.com/cli/cli / writeLocalTestSkill

Function writeLocalTestSkill

pkg/cmd/skills/install/install_test.go:263–268  ·  view source on GitHub ↗

writeLocalTestSkill creates a skill directory with a SKILL.md file.

(t *testing.T, baseDir, subPath, content string)

Source from the content-addressed store, hash-verified

261
262// writeLocalTestSkill creates a skill directory with a SKILL.md file.
263func writeLocalTestSkill(t *testing.T, baseDir, subPath, content string) {
264 t.Helper()
265 skillDir := filepath.Join(baseDir, subPath)
266 require.NoError(t, os.MkdirAll(skillDir, 0o755))
267 require.NoError(t, os.WriteFile(filepath.Join(skillDir, "SKILL.md"), []byte(content), 0o644))
268}
269
270// --- Skill content constants ---
271

Callers 2

TestInstallRunFunction · 0.85
TestRunLocalInstallFunction · 0.85

Calls 2

JoinMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected