@@ -1148,49 +1148,49 @@ func TestDo_rateLimitCategory(t *testing.T) {
11481148 category rateLimitCategory
11491149 }{
11501150 {
1151- http .MethodGet ,
1152- "/" ,
1153- coreCategory ,
1151+ method : http .MethodGet ,
1152+ url : "/" ,
1153+ category : coreCategory ,
11541154 },
11551155 {
1156- http .MethodGet ,
1157- "/search/issues?q=rate" ,
1158- searchCategory ,
1156+ method : http .MethodGet ,
1157+ url : "/search/issues?q=rate" ,
1158+ category : searchCategory ,
11591159 },
11601160 {
1161- http .MethodGet ,
1162- "/graphql" ,
1163- graphqlCategory ,
1161+ method : http .MethodGet ,
1162+ url : "/graphql" ,
1163+ category : graphqlCategory ,
11641164 },
11651165 {
1166- http .MethodPost ,
1167- "/app-manifests/code/conversions" ,
1168- integrationManifestCategory ,
1166+ method : http .MethodPost ,
1167+ url : "/app-manifests/code/conversions" ,
1168+ category : integrationManifestCategory ,
11691169 },
11701170 {
1171- http .MethodGet ,
1172- "/app-manifests/code/conversions" ,
1173- coreCategory , // only POST requests are in the integration manifest category
1171+ method : http .MethodGet ,
1172+ url : "/app-manifests/code/conversions" ,
1173+ category : coreCategory , // only POST requests are in the integration manifest category
11741174 },
11751175 {
1176- http .MethodPut ,
1177- "/repos/google/go-github/import" ,
1178- sourceImportCategory ,
1176+ method : http .MethodPut ,
1177+ url : "/repos/google/go-github/import" ,
1178+ category : sourceImportCategory ,
11791179 },
11801180 {
1181- http .MethodGet ,
1182- "/repos/google/go-github/import" ,
1183- coreCategory , // only PUT requests are in the source import category
1181+ method : http .MethodGet ,
1182+ url : "/repos/google/go-github/import" ,
1183+ category : coreCategory , // only PUT requests are in the source import category
11841184 },
11851185 {
1186- http .MethodPost ,
1187- "/repos/google/go-github/code-scanning/sarifs" ,
1188- codeScanningUploadCategory ,
1186+ method : http .MethodPost ,
1187+ url : "/repos/google/go-github/code-scanning/sarifs" ,
1188+ category : codeScanningUploadCategory ,
11891189 },
11901190 {
1191- http .MethodGet ,
1192- "/scim/v2/organizations/ORG/Users" ,
1193- scimCategory ,
1191+ method : http .MethodGet ,
1192+ url : "/scim/v2/organizations/ORG/Users" ,
1193+ category : scimCategory ,
11941194 },
11951195 // missing a check for actionsRunnerRegistrationCategory: API not found
11961196 }
@@ -2155,36 +2155,36 @@ func TestRateLimits(t *testing.T) {
21552155 rate * Rate
21562156 }{
21572157 {
2158- coreCategory ,
2159- want .Core ,
2158+ category : coreCategory ,
2159+ rate : want .Core ,
21602160 },
21612161 {
2162- searchCategory ,
2163- want .Search ,
2162+ category : searchCategory ,
2163+ rate : want .Search ,
21642164 },
21652165 {
2166- graphqlCategory ,
2167- want .GraphQL ,
2166+ category : graphqlCategory ,
2167+ rate : want .GraphQL ,
21682168 },
21692169 {
2170- integrationManifestCategory ,
2171- want .IntegrationManifest ,
2170+ category : integrationManifestCategory ,
2171+ rate : want .IntegrationManifest ,
21722172 },
21732173 {
2174- sourceImportCategory ,
2175- want .SourceImport ,
2174+ category : sourceImportCategory ,
2175+ rate : want .SourceImport ,
21762176 },
21772177 {
2178- codeScanningUploadCategory ,
2179- want .CodeScanningUpload ,
2178+ category : codeScanningUploadCategory ,
2179+ rate : want .CodeScanningUpload ,
21802180 },
21812181 {
2182- actionsRunnerRegistrationCategory ,
2183- want .ActionsRunnerRegistration ,
2182+ category : actionsRunnerRegistrationCategory ,
2183+ rate : want .ActionsRunnerRegistration ,
21842184 },
21852185 {
2186- scimCategory ,
2187- want .SCIM ,
2186+ category : scimCategory ,
2187+ rate : want .SCIM ,
21882188 },
21892189 }
21902190
@@ -2287,36 +2287,36 @@ func TestRateLimits_overQuota(t *testing.T) {
22872287 rate * Rate
22882288 }{
22892289 {
2290- coreCategory ,
2291- want .Core ,
2290+ category : coreCategory ,
2291+ rate : want .Core ,
22922292 },
22932293 {
2294- searchCategory ,
2295- want .Search ,
2294+ category : searchCategory ,
2295+ rate : want .Search ,
22962296 },
22972297 {
2298- graphqlCategory ,
2299- want .GraphQL ,
2298+ category : graphqlCategory ,
2299+ rate : want .GraphQL ,
23002300 },
23012301 {
2302- integrationManifestCategory ,
2303- want .IntegrationManifest ,
2302+ category : integrationManifestCategory ,
2303+ rate : want .IntegrationManifest ,
23042304 },
23052305 {
2306- sourceImportCategory ,
2307- want .SourceImport ,
2306+ category : sourceImportCategory ,
2307+ rate : want .SourceImport ,
23082308 },
23092309 {
2310- codeScanningUploadCategory ,
2311- want .CodeScanningUpload ,
2310+ category : codeScanningUploadCategory ,
2311+ rate : want .CodeScanningUpload ,
23122312 },
23132313 {
2314- actionsRunnerRegistrationCategory ,
2315- want .ActionsRunnerRegistration ,
2314+ category : actionsRunnerRegistrationCategory ,
2315+ rate : want .ActionsRunnerRegistration ,
23162316 },
23172317 {
2318- scimCategory ,
2319- want .SCIM ,
2318+ category : scimCategory ,
2319+ rate : want .SCIM ,
23202320 },
23212321 }
23222322 for _ , tt := range tests {
0 commit comments