@@ -178,53 +178,53 @@ func TestLogGRPC(t *testing.T) {
178178
179179func TestNewControllerServiceCapability (t * testing.T ) {
180180 tests := []struct {
181- cap csi.ControllerServiceCapability_RPC_Type
181+ c csi.ControllerServiceCapability_RPC_Type
182182 }{
183183 {
184- cap : csi .ControllerServiceCapability_RPC_UNKNOWN ,
184+ c : csi .ControllerServiceCapability_RPC_UNKNOWN ,
185185 },
186186 {
187- cap : csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ,
187+ c : csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ,
188188 },
189189 {
190- cap : csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ,
190+ c : csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ,
191191 },
192192 {
193- cap : csi .ControllerServiceCapability_RPC_LIST_VOLUMES ,
193+ c : csi .ControllerServiceCapability_RPC_LIST_VOLUMES ,
194194 },
195195 {
196- cap : csi .ControllerServiceCapability_RPC_GET_CAPACITY ,
196+ c : csi .ControllerServiceCapability_RPC_GET_CAPACITY ,
197197 },
198198 {
199- cap : csi .ControllerServiceCapability_RPC_CLONE_VOLUME ,
199+ c : csi .ControllerServiceCapability_RPC_CLONE_VOLUME ,
200200 },
201201 }
202202 for _ , test := range tests {
203- resp := NewControllerServiceCapability (test .cap )
203+ resp := NewControllerServiceCapability (test .c )
204204 assert .NotNil (t , resp )
205205 assert .Equal (t , resp .XXX_sizecache , int32 (0 ))
206206 }
207207}
208208
209209func TestNewNodeServiceCapability (t * testing.T ) {
210210 tests := []struct {
211- cap csi.NodeServiceCapability_RPC_Type
211+ c csi.NodeServiceCapability_RPC_Type
212212 }{
213213 {
214- cap : csi .NodeServiceCapability_RPC_UNKNOWN ,
214+ c : csi .NodeServiceCapability_RPC_UNKNOWN ,
215215 },
216216 {
217- cap : csi .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
217+ c : csi .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
218218 },
219219 {
220- cap : csi .NodeServiceCapability_RPC_GET_VOLUME_STATS ,
220+ c : csi .NodeServiceCapability_RPC_GET_VOLUME_STATS ,
221221 },
222222 {
223- cap : csi .NodeServiceCapability_RPC_EXPAND_VOLUME ,
223+ c : csi .NodeServiceCapability_RPC_EXPAND_VOLUME ,
224224 },
225225 }
226226 for _ , test := range tests {
227- resp := NewNodeServiceCapability (test .cap )
227+ resp := NewNodeServiceCapability (test .c )
228228 assert .NotNil (t , resp )
229229 assert .Equal (t , resp .XXX_sizecache , int32 (0 ))
230230 }
0 commit comments