MCPcopy Create free account
hub / github.com/ddev/ddev / TestGetBuildxVersion

Function TestGetBuildxVersion

pkg/dockerutil/requirements_test.go:50–56  ·  view source on GitHub ↗

TestGetBuildxVersion tests that the buildx version can be retrieved.

(t *testing.T)

Source from the content-addressed store, hash-verified

48
49// TestGetBuildxVersion tests that the buildx version can be retrieved.
50func TestGetBuildxVersion(t *testing.T) {
51 v, err := dockerutil.GetBuildxVersion()
52 require.NoError(t, err)
53 require.NotEmpty(t, v, "expected non-empty buildx version")
54 // Version should not have a v prefix (we strip it)
55 require.NotEqual(t, "v", string(v[0]), "expected version without 'v' prefix, got %q", v)
56}
57
58// TestGetBuildxLocation tests that the buildx plugin path can be retrieved.
59func TestGetBuildxLocation(t *testing.T) {

Callers

nothing calls this directly

Calls 1

GetBuildxVersionFunction · 0.92

Tested by

no test coverage detected