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: dashboard_file_test.go
    path of file: ./repos/erda/internal/tools/monitor/core/dataview
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Ver
    
func Test_provider_ExportTask(t *testing.T) {
	type args struct {
		id string
	}
	tests := []struct {
		name string
		args args
	}{
		{"case1", args{id: "test"}},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			var erdaDashboardHistoryDB db.ErdaDashboardHistoryDB
			monkey.PatchInstanceMethod(reflect.TypeOf(&erdaDashboardHistoryDB), "FindById", func(erdaDashboardHistoryDB *db.ErdaDashboardHistoryDB, id string) (*db.ErdaDashboardHistory, error) {
				if id == "error" {
					return nil, errors.New("error")
				}
				return &db.ErdaDashboardHistory{ID: id, Scope: "test", ScopeId: "test"}, nil
			})

			monkey.PatchInstanceMethod(reflect.TypeOf(&erdaDashboardHistoryDB), "UpdateStatusAndFileUUID", func(erdaDashboardHistoryDB *db.ErdaDashboardHistoryDB, id, status, fileUUID, errorMessage string) error {
				if id == "error" {
					return errors.New("error")
				}
				return nil
			})

			var bdl bundle.Bundle
			monkey.PatchInstanceMethod(reflect.TypeOf(&bdl), "UploadFile", func(bdl *bundle.Bundle, req filetypes.FileUploadRequest, clientTimeout ...int64) (*pb.File, error) {
				return &pb.File{}, nil
			})

			p := &provider{}
			p.ExportTask(tt.args.id)

		})
	}
}