MCPcopy
hub / github.com/docker/compose / TestComposeVersionInitialization

Function TestComposeVersionInitialization

pkg/api/labels_test.go:28–36  ·  pkg/api/labels_test.go::TestComposeVersionInitialization
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestComposeVersionInitialization(t *testing.T) {
29 v, err := version.NewVersion(internal.Version)
30 if err != nil {
31 assert.Equal(t, "", ComposeVersion, "ComposeVersion should be empty for a non-semver internal version (e.g. 'devel')")
32 } else {
33 expected := v.Core().String()
34 assert.Equal(t, expected, ComposeVersion, "ComposeVersion should be the core of internal.Version")
35 }
36}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected