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: helper_test.go
    path of file: ./repos/harbor/src/pkg/reg/adapter/volcenginecr
    
    the code of the file until where you have to start completion: package volcenginecr

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func Test_getRegionRegistryNamer(t *testing.T) {
	tests := []struct {
		name         string
		url          string
		wantRegion   string
		wantRegistry string
		wantErr      bool
	}{
		{"registry beijing", "https://enterprise-cn-beijing.cr.volces.com", "cn-beijing", "enterprise", false},
		{"invalid url", "http://enterprise-cn-beijing.cr.volces.com", "", "", true},
		{"invalid region", "https://enterprise-us-test.cr.volces.com", "", "", true},
		{"invalid suffix", "https://enterprise-us-test.cr-test.volces.com", "", "", true},
		{"registry shanghai", "https://cn-beijing-cn-shanghai.cr.volces.com", "cn-shanghai", "cn-beijing", false},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			gotRegion, gotRegistry, err
    
func Test_getRegionRegistryNamer(t *testing.T) {
	tests := []struct {
		name         string
		url          string
		wantRegion   string
		wantRegistry string
		wantErr      bool
	}{
		{"registry beijing", "https://enterprise-cn-beijing.cr.volces.com", "cn-beijing", "enterprise", false},
		{"invalid url", "http://enterprise-cn-beijing.cr.volces.com", "", "", true},
		{"invalid region", "https://enterprise-us-test.cr.volces.com", "", "", true},
		{"invalid suffix", "https://enterprise-us-test.cr-test.volces.com", "", "", true},
		{"registry shanghai", "https://cn-beijing-cn-shanghai.cr.volces.com", "cn-shanghai", "cn-beijing", false},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			gotRegion, gotRegistry, err := getRegionRegistryName(tt.url)
			if tt.wantErr {
				assert.NotNil(t, err)
			}
			assert.Equal(t, tt.wantRegion, gotRegion)
			assert.Equal(t, tt.wantRegistry, gotRegistry)
		})
	}
}