withVersion temporarily overrides the package-level Version for the duration of a test.
(t *testing.T, v string)
| 9 | // withVersion temporarily overrides the package-level Version for the |
| 10 | // duration of a test. |
| 11 | func withVersion(t *testing.T, v string) { |
| 12 | t.Helper() |
| 13 | old := Version |
| 14 | Version = v |
| 15 | t.Cleanup(func() { Version = old }) |
| 16 | } |
| 17 | |
| 18 | func TestSkillInstallWritesVersionSidecar(t *testing.T) { |
| 19 | home := withTempHome(t) |
no outgoing calls
no test coverage detected