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

Function withVersion

internal/app/version_test.go:11–16  ·  view source on GitHub ↗

withVersion temporarily overrides the package-level Version for the duration of a test.

(t *testing.T, v string)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected