@@ -90,7 +90,7 @@ func (c *mockBlobClient) GetContainer(ctx context.Context, subsID, resourceGroup
90
90
return storage.BlobContainer {ContainerProperties : c .conProp }, nil
91
91
}
92
92
93
- func NewMockBlobClient (errorType * errType , custom * string , conProp * storage.ContainerProperties ) * mockBlobClient {
93
+ func newMockBlobClient (errorType * errType , custom * string , conProp * storage.ContainerProperties ) * mockBlobClient {
94
94
return & mockBlobClient {errorType : errorType , custom : custom , conProp : conProp }
95
95
}
96
96
@@ -1038,7 +1038,7 @@ func TestValidateVolumeCapabilities(t *testing.T) {
1038
1038
1039
1039
for _ , test := range testCases {
1040
1040
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 )
1042
1042
assert .Equal (t , test .expectedErr , err , "Error in testcase (%s): Errors must match" , test .name )
1043
1043
assert .Equal (t , test .expectedRes , res , "Error in testcase (%s): Response must match" , test .name )
1044
1044
}
@@ -1273,7 +1273,7 @@ func TestCreateBlobContainer(t *testing.T) {
1273
1273
d .cloud = & azure.Cloud {}
1274
1274
conProp := & storage.ContainerProperties {}
1275
1275
for _ , test := range tests {
1276
- d .cloud .BlobClient = NewMockBlobClient (& test .clientErr , & test .customErrStr , conProp )
1276
+ d .cloud .BlobClient = newMockBlobClient (& test .clientErr , & test .customErrStr , conProp )
1277
1277
err := d .CreateBlobContainer (context .Background (), test .subsID , test .rg , test .accountName , test .containerName , test .secrets )
1278
1278
if ! reflect .DeepEqual (err , test .expectedErr ) {
1279
1279
t .Errorf ("test(%s), actualErr: (%v), expectedErr: (%v)" , test .desc , err , test .expectedErr )
@@ -1345,7 +1345,7 @@ func TestDeleteBlobContainer(t *testing.T) {
1345
1345
1346
1346
connProp := & storage.ContainerProperties {}
1347
1347
for _ , test := range tests {
1348
- d .cloud .BlobClient = NewMockBlobClient (& test .clientErr , & test .customErrStr , connProp )
1348
+ d .cloud .BlobClient = newMockBlobClient (& test .clientErr , & test .customErrStr , connProp )
1349
1349
err := d .DeleteBlobContainer (context .Background (), test .subsID , test .rg , test .accountName , test .containerName , test .secrets )
1350
1350
if ! reflect .DeepEqual (err , test .expectedErr ) {
1351
1351
t .Errorf ("test(%s), actualErr: (%v), expectedErr: (%v)" , test .desc , err , test .expectedErr )
0 commit comments