build(bridge-double): support Double 0.8.0 - #332
Open
roxblnfk wants to merge 1 commit into
Open
Conversation
test(bridge-double): cover 0.8.0 argument-all, override, passthru self-call and clone The bridge's own surface is untouched: 0.8.0 keeps every method the interceptor relies on (enableAutoVerify/verifyAll/listen/pauseAutoVerify/resumeAutoVerify, CheckEvent), so the upgrade is just the version constraint. Acceptance scenarios lock in the four new user-facing behaviours through the auto-verifying plugin: Argument::all() joint matching, Double::for(override: true) for reserved-name collisions, passthru self-calls reaching a stub, and a cloned double sharing its original's state. Assisted-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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 was changed
jasonmccreary/doubleto^0.8in the Double bridge.DoublePlugin:Argument::all()— joint matching over the whole argument list;Double::for(..., override: true)— doubling a target whose real method name collides with a Double control verb, driven via the returnedOverriddenDoubleand itsinstance();$this->x()re-enters the double);Adder,PermissionsandGreeterfixtures those scenarios need.Why?
Double 0.8.0 shipped
Argument::all(), theoverrideescape hatch for reserved-name collisions, self-call-aware passthru and working clones. The bridge's own surface needs no change — 0.8.0 keeps every method the interceptor relies on — so this is the version bump plus tests that pin the new behaviours through the bridge.Checklist