(t *testing.T)
| 83 | } |
| 84 | |
| 85 | func 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 | |
| 100 | func TestCmdInitSkipsSkillIfAlreadyPresent(t *testing.T) { |
| 101 | initTempFlowRoot(t) |
nothing calls this directly
no test coverage detected