chore: test fixes - #4803
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThree streaming tests in Anthropic Stream State Helper Rename
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Comment |
|
tejas ghatte seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |

Summary
Exports the
acquireAnthropicResponsesStreamStateandreleaseAnthropicResponsesStreamStatefunctions by renaming them toAcquireAnthropicResponsesStreamStateandReleaseAnthropicResponsesStreamState, making them accessible from test files and external packages.Changes
acquireAnthropicResponsesStreamState→AcquireAnthropicResponsesStreamStateandreleaseAnthropicResponsesStreamState→ReleaseAnthropicResponsesStreamStateto export these functions, allowing test code to reference them directly without relying on unexported identifiers.Type of change
Affected areas
How to test
go test ./core/providers/anthropic/...All existing tests for
TestCodeExecution_BashStream,TestCodeExecution_TextEditorStream, andTestCodeExecution_ProgrammaticStreamRoundTripshould continue to pass without modification.Screenshots/Recordings
N/A
Breaking changes
Related issues
N/A
Security considerations
None. This change only affects the visibility of internal pool management functions used in tests.
Checklist
docs/contributing/README.mdand followed the guidelines