Skip to content

Commit 85b073b

Browse files
committed
unexporting newMockBlobClient
1 parent 2f5e237 commit 85b073b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/blob/controllerserver_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (c *mockBlobClient) GetContainer(ctx context.Context, subsID, resourceGroup
9090
return storage.BlobContainer{ContainerProperties: c.conProp}, nil
9191
}
9292

93-
func NewMockBlobClient(errorType *errType, custom *string, conProp *storage.ContainerProperties) *mockBlobClient {
93+
func newMockBlobClient(errorType *errType, custom *string, conProp *storage.ContainerProperties) *mockBlobClient {
9494
return &mockBlobClient{errorType: errorType, custom: custom, conProp: conProp}
9595
}
9696

@@ -1038,7 +1038,7 @@ func TestValidateVolumeCapabilities(t *testing.T) {
10381038

10391039
for _, test := range testCases {
10401040
res, err := d.ValidateVolumeCapabilities(context.Background(), test.req)
1041-
d.cloud.BlobClient = NewMockBlobClient(&test.clientErr, to.StringPtr(""), test.containerProp)
1041+
d.cloud.BlobClient = newMockBlobClient(&test.clientErr, to.StringPtr(""), test.containerProp)
10421042
assert.Equal(t, test.expectedErr, err, "Error in testcase (%s): Errors must match", test.name)
10431043
assert.Equal(t, test.expectedRes, res, "Error in testcase (%s): Response must match", test.name)
10441044
}
@@ -1273,7 +1273,7 @@ func TestCreateBlobContainer(t *testing.T) {
12731273
d.cloud = &azure.Cloud{}
12741274
conProp := &storage.ContainerProperties{}
12751275
for _, test := range tests {
1276-
d.cloud.BlobClient = NewMockBlobClient(&test.clientErr, &test.customErrStr, conProp)
1276+
d.cloud.BlobClient = newMockBlobClient(&test.clientErr, &test.customErrStr, conProp)
12771277
err := d.CreateBlobContainer(context.Background(), test.subsID, test.rg, test.accountName, test.containerName, test.secrets)
12781278
if !reflect.DeepEqual(err, test.expectedErr) {
12791279
t.Errorf("test(%s), actualErr: (%v), expectedErr: (%v)", test.desc, err, test.expectedErr)
@@ -1345,7 +1345,7 @@ func TestDeleteBlobContainer(t *testing.T) {
13451345

13461346
connProp := &storage.ContainerProperties{}
13471347
for _, test := range tests {
1348-
d.cloud.BlobClient = NewMockBlobClient(&test.clientErr, &test.customErrStr, connProp)
1348+
d.cloud.BlobClient = newMockBlobClient(&test.clientErr, &test.customErrStr, connProp)
13491349
err := d.DeleteBlobContainer(context.Background(), test.subsID, test.rg, test.accountName, test.containerName, test.secrets)
13501350
if !reflect.DeepEqual(err, test.expectedErr) {
13511351
t.Errorf("test(%s), actualErr: (%v), expectedErr: (%v)", test.desc, err, test.expectedErr)

0 commit comments

Comments
 (0)