Skip to content

test: add unit coverage for inferQuotaPoolKey - #537

Open
ashstru9-cloud wants to merge 1 commit into
tashfeenahmed:mainfrom
ashstru9-cloud:test/infer-quota-pool-key
Open

test: add unit coverage for inferQuotaPoolKey#537
ashstru9-cloud wants to merge 1 commit into
tashfeenahmed:mainfrom
ashstru9-cloud:test/infer-quota-pool-key

Conversation

@ashstru9-cloud

Copy link
Copy Markdown

Summary

  • inferQuotaPoolKey in server/src/services/provider-quota.ts had no unit tests, despite being a pure function that maps platforms/models to quota pool keys.
  • Adds tests covering the openrouter free/account split, several fixed shared-pool platforms, and the fallback behavior for unrecognized platforms (with and without a model id).

Test plan

  • npx vitest run src/__tests__/services/provider-quota.test.ts passes (4/4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant