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

Function TestSkillInstallWritesVersionSidecar

internal/app/version_test.go:18–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestSkillInstallWritesVersionSidecar(t *testing.T) {
19 home := withTempHome(t)
20 withVersion(t, "v9.9.9")
21
22 if rc := cmdSkill([]string{"install"}); rc != 0 {
23 t.Fatalf("install rc=%d", rc)
24 }
25 got, err := os.ReadFile(filepath.Join(home, ".claude", "skills", "flow", "VERSION"))
26 if err != nil {
27 t.Fatalf("read VERSION: %v", err)
28 }
29 if want := "v9.9.9\n"; string(got) != want {
30 t.Errorf("VERSION sidecar = %q, want %q", got, want)
31 }
32}
33
34func TestCmdInitWritesVersionSidecar(t *testing.T) {
35 initTempFlowRoot(t)

Callers

nothing calls this directly

Calls 3

withTempHomeFunction · 0.85
withVersionFunction · 0.85
cmdSkillFunction · 0.85

Tested by

no test coverage detected