(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestLookupCodeMeta_RetryableAuthCode(t *testing.T) { |
| 80 | got, ok := LookupCodeMeta(20050) |
| 81 | if !ok { |
| 82 | t.Fatalf("LookupCodeMeta(20050) ok=false, want true") |
| 83 | } |
| 84 | if !got.Retryable { |
| 85 | t.Errorf("LookupCodeMeta(20050).Retryable = false, want true (sole retryable refresh code)") |
| 86 | } |
| 87 | if got.Category != errs.CategoryAuthentication { |
| 88 | t.Errorf("Category = %q, want %q", got.Category, errs.CategoryAuthentication) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | func TestLookupCodeMeta_RetryableRateLimit(t *testing.T) { |
| 93 | got, ok := LookupCodeMeta(99991400) |
nothing calls this directly
no test coverage detected