You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add four new test functions to cover previously untested paths:
- TestCircuitBreakerState_String: verifies all String() representations
including the defensive UNKNOWN default case (circuitBreakerState(99))
- TestFormatResetAt: directly tests the formatResetAt helper for both
zero time (returns 'unknown') and non-zero time (RFC3339 + duration hint)
- TestIsRateLimitText_Direct: directly tests isRateLimitText with all
five match patterns plus edge cases (case insensitivity, empty string,
'rate limit' without qualifying context)
- TestCircuitBreaker_RecordRateLimitWhenAlreadyOpen: tests the OPEN→OPEN
path in RecordRateLimit, verifying resetAt is updated on subsequent
rate-limit errors while the circuit remains OPEN
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments