File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -327,22 +327,6 @@ func TestClient_NewRequest(t *testing.T) {
327327 wantErr : true ,
328328 },
329329
330- {
331- name : "when the request cannot be created" ,
332- fields : fields {
333- HTTP : http .DefaultClient ,
334- Auth : internal .NewAuthenticationService (nil ),
335- Site : siteAsURL ,
336- },
337- args : args {
338- ctx : nil ,
339- method : http .MethodGet ,
340- urlStr : "rest/2/issue/attachment" ,
341- body : bytes .NewReader ([]byte ("Hello World" )),
342- },
343- want : requestMocked ,
344- wantErr : true ,
345- },
346330 }
347331
348332 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -326,22 +326,6 @@ func TestClient_NewRequest(t *testing.T) {
326326 wantErr : true ,
327327 },
328328
329- {
330- name : "when the request cannot be created" ,
331- fields : fields {
332- HTTP : http .DefaultClient ,
333- Auth : internal .NewAuthenticationService (nil ),
334- Site : siteAsURL ,
335- },
336- args : args {
337- ctx : nil ,
338- method : http .MethodGet ,
339- urlStr : "rest/2/issue/attachment" ,
340- body : bytes .NewReader ([]byte ("Hello World" )),
341- },
342- want : requestMocked ,
343- wantErr : true ,
344- },
345329 }
346330
347331 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -345,22 +345,6 @@ func TestClient_NewRequest(t *testing.T) {
345345 wantErr : false ,
346346 },
347347
348- {
349- name : "when the request cannot be created" ,
350- fields : fields {
351- HTTP : http .DefaultClient ,
352- Auth : internal .NewAuthenticationService (nil ),
353- Site : siteAsURL ,
354- },
355- args : args {
356- ctx : nil ,
357- method : http .MethodGet ,
358- urlStr : "rest/2/issue/attachment" ,
359- body : bytes .NewReader ([]byte ("Hello World" )),
360- },
361- want : requestMocked ,
362- wantErr : true ,
363- },
364348 }
365349
366350 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -345,22 +345,6 @@ func TestClient_NewRequest(t *testing.T) {
345345 wantErr : false ,
346346 },
347347
348- {
349- name : "when the request cannot be created" ,
350- fields : fields {
351- HTTP : http .DefaultClient ,
352- Auth : internal .NewAuthenticationService (nil ),
353- Site : siteAsURL ,
354- },
355- args : args {
356- ctx : nil ,
357- method : http .MethodGet ,
358- urlStr : "rest/2/issue/attachment" ,
359- body : bytes .NewReader ([]byte ("Hello World" )),
360- },
361- want : requestMocked ,
362- wantErr : true ,
363- },
364348 }
365349
366350 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -345,22 +345,6 @@ func TestClient_NewRequest(t *testing.T) {
345345 wantErr : false ,
346346 },
347347
348- {
349- name : "when the request cannot be created" ,
350- fields : fields {
351- HTTP : http .DefaultClient ,
352- Auth : internal .NewAuthenticationService (nil ),
353- Site : siteAsURL ,
354- },
355- args : args {
356- ctx : nil ,
357- method : http .MethodGet ,
358- urlStr : "rest/2/issue/attachment" ,
359- body : bytes .NewReader ([]byte ("Hello World" )),
360- },
361- want : requestMocked ,
362- wantErr : true ,
363- },
364348 }
365349
366350 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -334,22 +334,6 @@ func TestClient_NewRequest(t *testing.T) {
334334 wantErr : true ,
335335 },
336336
337- {
338- name : "when the request cannot be created" ,
339- fields : fields {
340- HTTP : http .DefaultClient ,
341- Auth : internal .NewAuthenticationService (nil ),
342- Site : siteAsURL ,
343- },
344- args : args {
345- ctx : nil ,
346- method : http .MethodGet ,
347- urlStr : "rest/2/issue/attachment" ,
348- body : bytes .NewReader ([]byte ("Hello World" )),
349- },
350- want : requestMocked ,
351- wantErr : true ,
352- },
353337 }
354338
355339 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -327,22 +327,6 @@ func TestClient_NewRequest(t *testing.T) {
327327 wantErr : true ,
328328 },
329329
330- {
331- name : "when the request cannot be created" ,
332- fields : fields {
333- HTTP : http .DefaultClient ,
334- Auth : internal .NewAuthenticationService (nil ),
335- Site : siteAsURL ,
336- },
337- args : args {
338- ctx : nil ,
339- method : http .MethodGet ,
340- urlStr : "rest/2/issue/attachment" ,
341- body : bytes .NewReader ([]byte ("Hello World" )),
342- },
343- want : requestMocked ,
344- wantErr : true ,
345- },
346330 }
347331
348332 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -345,22 +345,6 @@ func TestClient_NewRequest(t *testing.T) {
345345 wantErr : true ,
346346 },
347347
348- {
349- name : "when the request cannot be created" ,
350- fields : fields {
351- HTTP : http .DefaultClient ,
352- Auth : internal .NewAuthenticationService (nil ),
353- Site : siteAsURL ,
354- },
355- args : args {
356- ctx : nil ,
357- method : http .MethodGet ,
358- urlStr : "rest/2/issue/attachment" ,
359- body : bytes .NewReader ([]byte ("Hello World" )),
360- },
361- want : requestMocked ,
362- wantErr : true ,
363- },
364348 }
365349
366350 for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -345,22 +345,6 @@ func TestClient_NewRequest(t *testing.T) {
345345 wantErr : false ,
346346 },
347347
348- {
349- name : "when the request cannot be created" ,
350- fields : fields {
351- HTTP : http .DefaultClient ,
352- Auth : internal .NewAuthenticationService (nil ),
353- Site : siteAsURL ,
354- },
355- args : args {
356- ctx : nil ,
357- method : http .MethodGet ,
358- urlStr : "rest/2/issue/attachment" ,
359- body : bytes .NewReader ([]byte ("Hello World" )),
360- },
361- want : requestMocked ,
362- wantErr : true ,
363- },
364348 }
365349
366350 for _ , testCase := range testCases {
You can’t perform that action at this time.
0 commit comments