MCPcopy
hub / github.com/codeaashu/claude-code / shouldProcessMockLimits

Function shouldProcessMockLimits

src/services/mockRateLimits.ts:713–718  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

711// Check if we should process rate limits even without subscription
712// This is for Ant employees testing with mocks
713export function shouldProcessMockLimits(): boolean {
714 if (process.env.USER_TYPE !== 'ant') {
715 return false
716 }
717 return mockEnabled || Boolean(process.env.CLAUDE_MOCK_HEADERLESS_429)
718}
719
720export function getCurrentMockScenario(): MockScenario | null {
721 if (!mockEnabled) {

Callers 5

RateLimitMessageFunction · 0.85
processRateLimitHeadersFunction · 0.85
shouldProcessRateLimitsFunction · 0.85
checkMockRateLimitErrorFunction · 0.85
isMockRateLimitErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected