@@ -646,7 +646,7 @@ func TestNewRequest_errorForNoTrailingSlash(t *testing.T) {
646
646
t .Fatalf ("url.Parse returned unexpected error: %v." , err )
647
647
}
648
648
c .BaseURL = u
649
- if _ , err := c .NewRequest (http . MethodGet , "test" , nil ); test .wantError && err == nil {
649
+ if _ , err := c .NewRequest ("GET" , "test" , nil ); test .wantError && err == nil {
650
650
t .Fatal ("Expected error to be returned." )
651
651
} else if ! test .wantError && err != nil {
652
652
t .Fatalf ("NewRequest returned unexpected error: %v." , err )
@@ -1247,62 +1247,62 @@ func TestDo_rateLimitCategory(t *testing.T) {
1247
1247
category RateLimitCategory
1248
1248
}{
1249
1249
{
1250
- method : http . MethodGet ,
1250
+ method : "GET" ,
1251
1251
url : "/" ,
1252
1252
category : CoreCategory ,
1253
1253
},
1254
1254
{
1255
- method : http . MethodGet ,
1255
+ method : "GET" ,
1256
1256
url : "/search/issues?q=rate" ,
1257
1257
category : SearchCategory ,
1258
1258
},
1259
1259
{
1260
- method : http . MethodGet ,
1260
+ method : "GET" ,
1261
1261
url : "/graphql" ,
1262
1262
category : GraphqlCategory ,
1263
1263
},
1264
1264
{
1265
- method : http . MethodPost ,
1265
+ method : "POST" ,
1266
1266
url : "/app-manifests/code/conversions" ,
1267
1267
category : IntegrationManifestCategory ,
1268
1268
},
1269
1269
{
1270
- method : http . MethodGet ,
1270
+ method : "GET" ,
1271
1271
url : "/app-manifests/code/conversions" ,
1272
1272
category : CoreCategory , // only POST requests are in the integration manifest category
1273
1273
},
1274
1274
{
1275
- method : http . MethodPut ,
1275
+ method : "PUT" ,
1276
1276
url : "/repos/google/go-github/import" ,
1277
1277
category : SourceImportCategory ,
1278
1278
},
1279
1279
{
1280
- method : http . MethodGet ,
1280
+ method : "GET" ,
1281
1281
url : "/repos/google/go-github/import" ,
1282
1282
category : CoreCategory , // only PUT requests are in the source import category
1283
1283
},
1284
1284
{
1285
- method : http . MethodPost ,
1285
+ method : "POST" ,
1286
1286
url : "/repos/google/go-github/code-scanning/sarifs" ,
1287
1287
category : CodeScanningUploadCategory ,
1288
1288
},
1289
1289
{
1290
- method : http . MethodGet ,
1290
+ method : "GET" ,
1291
1291
url : "/scim/v2/organizations/ORG/Users" ,
1292
1292
category : ScimCategory ,
1293
1293
},
1294
1294
{
1295
- method : http . MethodPost ,
1295
+ method : "POST" ,
1296
1296
url : "/repos/google/go-github/dependency-graph/snapshots" ,
1297
1297
category : DependencySnapshotsCategory ,
1298
1298
},
1299
1299
{
1300
- method : http . MethodGet ,
1300
+ method : "GET" ,
1301
1301
url : "/search/code?q=rate" ,
1302
1302
category : CodeSearchCategory ,
1303
1303
},
1304
1304
{
1305
- method : http . MethodGet ,
1305
+ method : "GET" ,
1306
1306
url : "/orgs/google/audit-log" ,
1307
1307
category : AuditLogCategory ,
1308
1308
},
0 commit comments