Repository navigation
test(pyamber): add unit tests for customized_queue inner-class decorators - #4782
Merged
Merged
Conversation
…tors Closes apache#4779 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4782 +/- ##
============================================
+ Coverage 43.49% 43.60% +0.10%
- Complexity 2072 2082 +10
============================================
Files 957 957
Lines 34077 34077
Branches 3753 3753
============================================
+ Hits 14821 14858 +37
+ Misses 18457 18422 -35
+ Partials 799 797 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
aglinxinyuan
approved these changes
May 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a focused pytest spec for the vendored @inner / @static_inner / @class_inner decorators used by PyAmber’s customized queue implementation (notably LinkedBlockingMultiQueue), closing the gap described in #4779.
Changes:
- Introduces unit tests covering
raw_innerpassthrough behavior. - Adds tests for
static_innerowner wiring at class-definition time. - Adds tests for
class_innerdescriptor-method rejection, carried inheritance, andinnerinstance/property/cached_property binding semantics.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aglinxinyuan
enabled auto-merge (squash)
May 3, 2026 04:17
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…tors (apache#4782) ### What changes were proposed in this PR? Adds pytest coverage for `amber/src/main/python/core/util/customized_queue/inner.py`. The vendored `@inner` / `@static_inner` / `@class_inner` decorator family used by `LinkedBlockingMultiQueue` had no dedicated spec. ### Any related issues, documentation, discussions? Closes apache#4779. ### How was this PR tested? ``` cd amber/src/main/python ruff check core/util/customized_queue/test_inner.py ruff format --check core/util/customized_queue/test_inner.py python -m pytest core/util/customized_queue/test_inner.py ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-7) Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
1 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Adds pytest coverage for
amber/src/main/python/core/util/customized_queue/inner.py. The vendored@inner/@static_inner/@class_innerdecorator family used byLinkedBlockingMultiQueuehad no dedicated spec.Any related issues, documentation, discussions?
Closes #4779.
How was this PR tested?
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-7)