MCPcopy Index your code
hub / github.com/google/go-github / TestDo_rateLimitCategory

Function TestDo_rateLimitCategory

github/github_test.go:2365–2445  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2363}
2364
2365func TestDo_rateLimitCategory(t *testing.T) {
2366 t.Parallel()
2367 tests := []struct {
2368 method string
2369 url string
2370 category RateLimitCategory
2371 }{
2372 {
2373 method: "GET",
2374 url: "/",
2375 category: CoreCategory,
2376 },
2377 {
2378 method: "GET",
2379 url: "/search/issues?q=rate",
2380 category: SearchCategory,
2381 },
2382 {
2383 method: "GET",
2384 url: "/graphql",
2385 category: GraphqlCategory,
2386 },
2387 {
2388 method: "POST",
2389 url: "/app-manifests/code/conversions",
2390 category: IntegrationManifestCategory,
2391 },
2392 {
2393 method: "GET",
2394 url: "/app-manifests/code/conversions",
2395 category: CoreCategory, // only POST requests are in the integration manifest category
2396 },
2397 {
2398 method: "PUT",
2399 url: "/repos/google/go-github/import",
2400 category: SourceImportCategory,
2401 },
2402 {
2403 method: "GET",
2404 url: "/repos/google/go-github/import",
2405 category: CoreCategory, // only PUT requests are in the source import category
2406 },
2407 {
2408 method: "POST",
2409 url: "/repos/google/go-github/code-scanning/sarifs",
2410 category: CodeScanningUploadCategory,
2411 },
2412 {
2413 method: "GET",
2414 url: "/scim/v2/organizations/ORG/Users",
2415 category: ScimCategory,
2416 },
2417 {
2418 method: "POST",
2419 url: "/repos/google/go-github/dependency-graph/snapshots",
2420 category: DependencySnapshotsCategory,
2421 },
2422 {

Callers

nothing calls this directly

Calls 1

GetRateLimitCategoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…