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

Function writeLocalTestSkill

pkg/cmd/skills/install/install_test.go:275–280  ·  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

273
274// writeLocalTestSkill creates a skill directory with a SKILL.md file.
275func writeLocalTestSkill(t *testing.T, baseDir, subPath, content string) {
276 t.Helper()
277 skillDir := filepath.Join(baseDir, subPath)
278 require.NoError(t, os.MkdirAll(skillDir, 0o755))
279 require.NoError(t, os.WriteFile(filepath.Join(skillDir, "SKILL.md"), []byte(content), 0o644))
280}
281
282// --- Skill content constants ---
283

Callers 3

TestInstallRunFunction · 0.85
TestRunLocalInstallFunction · 0.85

Calls 4

JoinMethod · 0.80
MkdirAllMethod · 0.80
WriteFileMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected