MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdInitInstallsSkill

Function TestCmdInitInstallsSkill

internal/app/init_test.go:85–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestCmdInitInstallsSkill(t *testing.T) {
86 initTempFlowRoot(t)
87 if rc := cmdInit(nil); rc != 0 {
88 t.Fatalf("cmdInit rc=%d", rc)
89 }
90 skillPath := filepath.Join(os.Getenv("HOME"), ".claude", "skills", "flow", "SKILL.md")
91 info, err := os.Stat(skillPath)
92 if err != nil {
93 t.Fatalf("SKILL.md missing: %v", err)
94 }
95 if info.Size() == 0 {
96 t.Errorf("SKILL.md is empty")
97 }
98}
99
100func TestCmdInitSkipsSkillIfAlreadyPresent(t *testing.T) {
101 initTempFlowRoot(t)

Callers

nothing calls this directly

Calls 2

initTempFlowRootFunction · 0.85
cmdInitFunction · 0.85

Tested by

no test coverage detected