@@ -174,52 +174,52 @@ func TestLogGRPC(t *testing.T) {
174174
175175func TestNewControllerServiceCapability (t * testing.T ) {
176176 tests := []struct {
177- cap csi.ControllerServiceCapability_RPC_Type
177+ c csi.ControllerServiceCapability_RPC_Type
178178 }{
179179 {
180- cap : csi .ControllerServiceCapability_RPC_UNKNOWN ,
180+ c : csi .ControllerServiceCapability_RPC_UNKNOWN ,
181181 },
182182 {
183- cap : csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ,
183+ c : csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ,
184184 },
185185 {
186- cap : csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ,
186+ c : csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ,
187187 },
188188 {
189- cap : csi .ControllerServiceCapability_RPC_LIST_VOLUMES ,
189+ c : csi .ControllerServiceCapability_RPC_LIST_VOLUMES ,
190190 },
191191 {
192- cap : csi .ControllerServiceCapability_RPC_GET_CAPACITY ,
192+ c : csi .ControllerServiceCapability_RPC_GET_CAPACITY ,
193193 },
194194 {
195- cap : csi .ControllerServiceCapability_RPC_CLONE_VOLUME ,
195+ c : csi .ControllerServiceCapability_RPC_CLONE_VOLUME ,
196196 },
197197 }
198198 for _ , test := range tests {
199- resp := NewControllerServiceCapability (test .cap )
199+ resp := NewControllerServiceCapability (test .c )
200200 assert .NotNil (t , resp )
201201 }
202202}
203203
204204func TestNewNodeServiceCapability (t * testing.T ) {
205205 tests := []struct {
206- cap csi.NodeServiceCapability_RPC_Type
206+ c csi.NodeServiceCapability_RPC_Type
207207 }{
208208 {
209- cap : csi .NodeServiceCapability_RPC_UNKNOWN ,
209+ c : csi .NodeServiceCapability_RPC_UNKNOWN ,
210210 },
211211 {
212- cap : csi .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
212+ c : csi .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
213213 },
214214 {
215- cap : csi .NodeServiceCapability_RPC_GET_VOLUME_STATS ,
215+ c : csi .NodeServiceCapability_RPC_GET_VOLUME_STATS ,
216216 },
217217 {
218- cap : csi .NodeServiceCapability_RPC_EXPAND_VOLUME ,
218+ c : csi .NodeServiceCapability_RPC_EXPAND_VOLUME ,
219219 },
220220 }
221221 for _ , test := range tests {
222- resp := NewNodeServiceCapability (test .cap )
222+ resp := NewNodeServiceCapability (test .c )
223223 assert .NotNil (t , resp )
224224 }
225225}
0 commit comments