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

Function TestGetBuildxLocation

pkg/dockerutil/requirements_test.go:59–63  ·  view source on GitHub ↗

TestGetBuildxLocation tests that the buildx plugin path can be retrieved.

(t *testing.T)

Source from the content-addressed store, hash-verified

57
58// TestGetBuildxLocation tests that the buildx plugin path can be retrieved.
59func TestGetBuildxLocation(t *testing.T) {
60 pluginPath, err := dockerutil.GetBuildxLocation()
61 require.NoError(t, err)
62 require.NotEmpty(t, pluginPath, "expected non-empty buildx plugin path")
63}
64
65// TestCheckBuildx tests that CheckDockerBuildxVersion passes on a host with buildx installed.
66func TestCheckBuildx(t *testing.T) {

Callers

nothing calls this directly

Calls 1

GetBuildxLocationFunction · 0.92

Tested by

no test coverage detected