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: artifact_registry_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 (
	"github.com/goharbor/harbor/src/pkg/reg/model"
	"testing"

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

func TestArtifactRegistry_DeleteManifest(t *testing.T) {
	a, s := getMockAdapter_withoutCre
    
func TestArtifactRegistry_FetchArtifacts(t *testing.T) {
	a, s := getMockAdapter_withoutCred(t, true, true)
	defer s.Close()
	tests := []struct {
		name    string
		filter  model.Filter
		wantErr bool
	}{
		{"filter name",
			model.Filter{
				Type:  model.FilterTypeName,
				Value: "ut_test",
			},
			true},
		{"filter tag",
			model.Filter{
				Type:  model.FilterTypeTag,
				Value: "v1",
			},
			true},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			_, err := a.FetchArtifacts([]*model.Filter{&tt.filter})
			if tt.wantErr {
				assert.Error(t, err)
			} else {
				assert.NoError(t, err)
			}
		})
	}
}