Skip to content

test: exercise adopt through real Git and native stacks - #85

Open
rohoswagger wants to merge 1 commit into
mainfrom
test/adopt-cli-coverage
Open

test: exercise adopt through real Git and native stacks#85
rohoswagger wants to merge 1 commit into
mainfrom
test/adopt-cli-coverage

Conversation

@rohoswagger

Copy link
Copy Markdown
Owner

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.

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.
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.

1 participant