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

Function TestSkillUpdateIsForceInstall

internal/app/skill_test.go:125–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123 if rc := cmdSkill([]string{"install"}); rc != 0 {
124 t.Fatalf("first install rc=%d", rc)
125 }
126 if rc := cmdSkill([]string{"install"}); rc == 0 {
127 t.Errorf("second install without --force should fail, got rc=%d", rc)
128 }
129}
130
131func TestSkillInstallForceOverwrites(t *testing.T) {
132 home := withTempHome(t)
133 path := filepath.Join(home, ".claude", "skills", "flow", "SKILL.md")
134
135 // Pre-create something different.
136 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
137 t.Fatal(err)

Callers

nothing calls this directly

Calls 2

withTempHomeFunction · 0.85
cmdSkillFunction · 0.85

Tested by

no test coverage detected