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: oasconv_test.go
    path of file: ./repos/erda/pkg/swagger/oasconv
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
    
func testOas2ConvertTo3WithBasePath(t *testing.T) {
	data, err := os.ReadFile(oas2WithBasePath)
	if err != nil {
		t.Fatalf("failed to ReadFile, filename: %s, err: %v", oas2WithBasePath, err)
	}

	v2, err := oas2.LoadFromData(data)
	if err != nil {
		t.Fatalf("failed to LoadFromData, filename: %s, err: %v", oas2WithBasePath, err)
	}

	v3, err := oasconv.OAS2ConvTo3(v2)
	if err != nil {
		t.Fatalf("failed to OAS2ConvTo3, filename: %s, err: %v", oas2WithBasePath, err)
	}

	if strings.HasPrefix(v2.BasePath, "/") {
		for k := range v2.Paths {
			if _, ok := v3.Paths[filepath.Join(v2.BasePath, k)]; !ok {
				t.Fatalf("failed to find the new path in openapi 3, v2.basePath: %s, current path: %s", v2.BasePath, k)
			}
		}
		for k := range v3.Paths {
			if !strings.HasPrefix(k, v2.BasePath) {
				t.Fatalf("the path in openapi3 do not has prefix v2.basePath, v2.basePath: %s, current path: %v", v2.BasePath, k)
			}
		}
	}
}