MCPcopy Index your code
hub / github.com/devspace-sh/devspace / TestSetVersion

Function TestSetVersion

pkg/devspace/upgrade/upgrade_test.go:13–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestSetVersion(t *testing.T) {
14 SetVersion("sasd0.0.1hello")
15 assert.Equal(t, "0.0.1hello", GetVersion(), "Wrong version set")
16}
17
18func TestEraseVersionPrefix(t *testing.T) {
19 prefixless, err := eraseVersionPrefix("sasd0.0.1hello")

Callers

nothing calls this directly

Calls 3

SetVersionFunction · 0.85
GetVersionFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected