Skip to content

tests: add unit tests for GroqAIProvider with mocked client#3042

Merged
Salazareo merged 1 commit into
mainfrom
DS/2977
May 9, 2026
Merged

tests: add unit tests for GroqAIProvider with mocked client#3042
Salazareo merged 1 commit into
mainfrom
DS/2977

Conversation

@Salazareo
Copy link
Copy Markdown
Member

Mocks the groq-sdk at the module boundary, boots a real PuterServer for the wired MeteringService, and exercises construction, model catalog/resolution, request shape (max_completion_tokens rename, tools passthrough, content blanking when paired with tool_calls), non-stream

  • streaming output (including Groq's x_groq.usage envelope deviation), error mapping, and moderation.

closes #2977

Mocks the groq-sdk at the module boundary, boots a real PuterServer
for the wired MeteringService, and exercises construction, model
catalog/resolution, request shape (max_completion_tokens rename, tools
passthrough, content blanking when paired with tool_calls), non-stream
+ streaming output (including Groq's x_groq.usage envelope deviation),
error mapping, and moderation.

closes #2977
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 39.74%
⬆️ +0.16%
7025 / 17674
🔵 Statements 38.91%
⬆️ +0.15%
7413 / 19051
🔵 Functions 42.56%
⬆️ +0.37%
1271 / 2986
🔵 Branches 28.61%
⬆️ +0.06%
4018 / 14040
File CoverageNo changed files found.
Generated in workflow #102 for commit cc7a913 by the Vitest Coverage Report Action

@Salazareo Salazareo merged commit 4dbbc7c into main May 9, 2026
4 checks passed
@Salazareo Salazareo deleted the DS/2977 branch May 10, 2026 21:29
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.

[Tests] Add unit tests for GroqAIProvider with mocked client

1 participant