(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func 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 | |
| 46 | func TestMaybeAutoUpgradeUpgradesOnMismatch(t *testing.T) { |
| 47 | home := withTempHome(t) |
nothing calls this directly
no test coverage detected