test: exercise adopt through real Git and native stacks - #85
Open
rohoswagger wants to merge 1 commit into
Open
Conversation
Exercise offline explicit chains, authenticated discovery, orphan handling, native GitHub stacks, legacy fallback, state preservation, and receipts through the compiled CLI against real temporary repositories. Constraint: GitHub behavior must remain hermetic and network-free in tests. Rejected: Mock adopt internals directly | would not prove CLI parsing, Git subprocesses, persisted metadata, or receipts. Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep native-stack ordering and explicit offline adoption covered through real refs. Tested: cargo test --test adopt_cli --all-features; cargo clippy --all-targets --all-features -- -D warnings; cargo llvm-cov --all-targets --all-features (all green, adopt.rs 91.47% before the final four cases). Not-tested: Windows shell portability; CI and canary target Ubuntu and local verification used macOS.
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.
Adds hermetic CLI coverage for offline explicit adoption, native GitHub stack ordering, legacy fallback, orphan warnings, state preservation, and receipts. Uses real temporary repositories and local pull refs with a fake gh executable; no network access.