MCPcopy
hub / github.com/larksuite/cli / TestLookupCodeMeta_RetryableRateLimit

Function TestLookupCodeMeta_RetryableRateLimit

internal/errclass/codemeta_test.go:92–103  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestLookupCodeMeta_RetryableRateLimit(t *testing.T) {
93 got, ok := LookupCodeMeta(99991400)
94 if !ok {
95 t.Fatalf("LookupCodeMeta(99991400) ok=false, want true")
96 }
97 if !got.Retryable {
98 t.Errorf("LookupCodeMeta(99991400).Retryable = false, want true (rate_limit retryable)")
99 }
100 if got.Subtype != errs.SubtypeRateLimit {
101 t.Errorf("Subtype = %q, want %q", got.Subtype, errs.SubtypeRateLimit)
102 }
103}
104
105func TestLookupCodeMeta_DrivePushCodes(t *testing.T) {
106 cases := []struct {

Callers

nothing calls this directly

Calls 1

LookupCodeMetaFunction · 0.85

Tested by

no test coverage detected