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

Method Error

github/github.go:1534–1538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1532}
1533
1534func (r *RateLimitError) Error() string {
1535 return fmt.Sprintf("%v %v: %v %v %v",
1536 r.Response.Request.Method, sanitizeURL(r.Response.Request.URL),
1537 r.Response.StatusCode, r.Message, formatRateReset(time.Until(r.Rate.Reset.Time)))
1538}
1539
1540// Is returns whether the provided error equals this error.
1541func (r *RateLimitError) Is(target error) bool {

Callers 1

TestRateLimitErrorFunction · 0.95

Calls 2

sanitizeURLFunction · 0.85
formatRateResetFunction · 0.85

Tested by 1

TestRateLimitErrorFunction · 0.76