MCPcopy Index your code
hub / github.com/cli/cli / writeLocalTestSkill

Function writeLocalTestSkill

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

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

Callers 2

TestInstallRunFunction · 0.85
TestRunLocalInstallFunction · 0.85

Calls 2

JoinMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected