@@ -139,50 +139,50 @@ func TestLogGRPC(t *testing.T) {
139139
140140func TestNewControllerServiceCapability (t * testing.T ) {
141141 tests := []struct {
142- cap csi.ControllerServiceCapability_RPC_Type
142+ c csi.ControllerServiceCapability_RPC_Type
143143 }{
144144 {
145- cap : csi .ControllerServiceCapability_RPC_UNKNOWN ,
145+ c : csi .ControllerServiceCapability_RPC_UNKNOWN ,
146146 },
147147 {
148- cap : csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ,
148+ c : csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ,
149149 },
150150 {
151- cap : csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ,
151+ c : csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ,
152152 },
153153 {
154- cap : csi .ControllerServiceCapability_RPC_LIST_VOLUMES ,
154+ c : csi .ControllerServiceCapability_RPC_LIST_VOLUMES ,
155155 },
156156 {
157- cap : csi .ControllerServiceCapability_RPC_GET_CAPACITY ,
157+ c : csi .ControllerServiceCapability_RPC_GET_CAPACITY ,
158158 },
159159 }
160160 for _ , test := range tests {
161- resp := NewControllerServiceCapability (test .cap )
161+ resp := NewControllerServiceCapability (test .c )
162162 assert .NotNil (t , resp )
163163 assert .Equal (t , resp .XXX_sizecache , int32 (0 ))
164164 }
165165}
166166
167167func TestNewNodeServiceCapability (t * testing.T ) {
168168 tests := []struct {
169- cap csi.NodeServiceCapability_RPC_Type
169+ c csi.NodeServiceCapability_RPC_Type
170170 }{
171171 {
172- cap : csi .NodeServiceCapability_RPC_UNKNOWN ,
172+ c : csi .NodeServiceCapability_RPC_UNKNOWN ,
173173 },
174174 {
175- cap : csi .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
175+ c : csi .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
176176 },
177177 {
178- cap : csi .NodeServiceCapability_RPC_GET_VOLUME_STATS ,
178+ c : csi .NodeServiceCapability_RPC_GET_VOLUME_STATS ,
179179 },
180180 {
181- cap : csi .NodeServiceCapability_RPC_EXPAND_VOLUME ,
181+ c : csi .NodeServiceCapability_RPC_EXPAND_VOLUME ,
182182 },
183183 }
184184 for _ , test := range tests {
185- resp := NewNodeServiceCapability (test .cap )
185+ resp := NewNodeServiceCapability (test .c )
186186 assert .NotNil (t , resp )
187187 assert .Equal (t , resp .XXX_sizecache , int32 (0 ))
188188 }
0 commit comments