TestGetBuildxVersion tests that the buildx version can be retrieved.
(t *testing.T)
| 48 | |
| 49 | // TestGetBuildxVersion tests that the buildx version can be retrieved. |
| 50 | func 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. |
| 59 | func TestGetBuildxLocation(t *testing.T) { |
nothing calls this directly
no test coverage detected