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

Function TestCmdInitWritesVersionSidecar

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

Source from the content-addressed store, hash-verified

32}
33
34func TestCmdInitWritesVersionSidecar(t *testing.T) {
35 initTempFlowRoot(t)
36 withVersion(t, "v1.2.3")
37
38 if rc := cmdInit(nil); rc != 0 {
39 t.Fatalf("cmdInit rc=%d", rc)
40 }
41 if got := readSkillVersion(); got != "v1.2.3" {
42 t.Errorf("readSkillVersion=%q, want v1.2.3", got)
43 }
44}
45
46func TestMaybeAutoUpgradeUpgradesOnMismatch(t *testing.T) {
47 home := withTempHome(t)

Callers

nothing calls this directly

Calls 4

initTempFlowRootFunction · 0.85
withVersionFunction · 0.85
cmdInitFunction · 0.85
readSkillVersionFunction · 0.85

Tested by

no test coverage detected