You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: versions_test.go
    path of file: ./repos/devspace/pkg/devspace/config/versions
    
    the code of the file until where you have to start completion: package versions

import (
	"testing"

	"github.com/loft-sh/devspace/pkg/devspace/config/versions/latest"
	"github.com/loft-sh/devspace/pkg/util/log"
	"gotest.tools/assert"
)

func TestParse(t *testing.T) {
	config, err := Parse(map[string]interface{}{
		"version": "DoesNotExist",
		"name":    "test",
	}, log.Discard)
	assert.Error(t, err, "Unrecognized config version DoesNotExist. Please upgrade devspace with `devspace upgrade`")
	assert.Equal(t, true, config == nil, "Config from in
    
func TestParse(t *testing.T) {
	config, err := Parse(map[string]interface{}{
		"version": "DoesNotExist",
		"name":    "test",
	}, log.Discard)
	assert.Error(t, err, "Unrecognized config version DoesNotExist. Please upgrade devspace with `devspace upgrade`")
	assert.Equal(t, true, config == nil, "Config from invalid version not nil")

	config, err = Parse(map[string]interface{}{
		"version": latest.Version,
		"name":    "test",
		"images": &map[string]*latest.Image{
			"test-img": {
				Image: "testimage",
			},
		},
	}, log.Discard)
	assert.NilError(t, err, "Error parsing map without defined version: %v")
	assert.Equal(t, latest.Version, config.Version, "Conversion to latest version not correct")
	assert.Equal(t, "testimage", config.Images["test-img"].Image, "Conversion to latest version not correct")
}