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: metastore_utils_test.go
    path of file: ./repos/lakeFS/pkg/metastore
    
    the code of the file until where you have to start completion: package metastore

import "testing"

func TestReplaceBranchName(t *testing.T) {
	type args struct {
		location string
		branch   string
	}
	tests := []struct {
		name    string
		args    args
		want    string
		wantErr bool
	}{
		{
			name: "table",
			args: args{
				location: "s3a://repo/main/path/to/table",
				branch:   "br1",
			},
			want: "s3a://repo
    
func TestGetSymlinkLocation1(t *testing.T) {
	type args struct {
		location       string
		locationPrefix string
	}
	tests := []struct {
		name    string
		args    args
		want    string
		wantErr bool
	}{
		{
			name: "table location - repo is bucket",
			args: args{
				location:       "s3a://repo/main/tableName",
				locationPrefix: "s3://bucket/lakeFS",
			},
			want: "s3://bucket/lakeFS/repo/main/tableName",
		},
		{
			name: "partition location - repo is bucket",
			args: args{
				location:       "s3a://repo/main/tableName/partition=value",
				locationPrefix: "s3://bucket/lakeFS",
			},
			want: "s3://bucket/lakeFS/repo/main/tableName/partition=value",
		},
		{
			name: "partition location - repo is path",
			args: args{
				location:       "s3a://repo/main/tableName/partition=value",
				locationPrefix: "s3://bucket/some/path/lakeFS",
			},
			want: "s3://bucket/some/path/lakeFS/repo/main/tableName/partition=value",
		},
		{
			name: "no schema",
			args: args{
				location:       "noschema/repo",
				locationPrefix: "s3://bucket/some/path/lakeFS",
			},
			wantErr: true,
		},
		{
			name: "only schema",
			args: args{
				location:       "s3://",
				locationPrefix: "s3://bucket/some/path/lakeFS",
			},
			wantErr: true,
		},
		{
			name: "invalid url",
			args: args{
				location:       "~s3:/s:@12/%?",
				locationPrefix: "s3://bucket/some/path/lakeFS",
			},
			wantErr: true,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			got, err := GetSymlinkLocation(tt.args.location, tt.args.locationPrefix)
			if (err != nil) != tt.wantErr {
				t.Errorf("GetSymlinkLocation() error = %v, wantErr %v", err, tt.wantErr)
				return
			}
			if got != tt.want {
				t.Errorf("GetSymlinkLocation() got = %v, want %v", got, tt.want)
			}
		})
	}
}