Skip to content

Make small command and defensive invariants executable - #98

Merged
rohoswagger merged 1 commit into
mainfrom
test/small-shared-coverage
Aug 4, 2026
Merged

Make small command and defensive invariants executable#98
rohoswagger merged 1 commit into
mainfrom
test/small-shared-coverage

Conversation

@rohoswagger

Copy link
Copy Markdown
Owner

Summary

  • exercise shell-init, explicit-trunk init, diff, scope, and PR-view refusal paths through the compiled CLI against real Git repositories
  • cover cyclic stack navigation and unknown lease-holder diagnostics
  • cover conflict receipt rendering and remaining PR badge state

Verification

  • cargo test --bin ez --all-features (391 passed)
  • cargo test --test small_shared_cli --all-features (5 passed)
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo fmt --check
  • git diff --check

Tests are hermetic and make no network or GitHub calls.

Exercise shell setup output, initialization, diff and scope behavior against real repositories while locking defensive stack, lease, and conflict-reporting paths.

Constraint: Coverage tests must remain hermetic and avoid GitHub or network access.
Rejected: Mock command internals | compiled CLI tests prove persisted Git and ez state more directly.
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep the temporary repositories isolated and preserve exact refusal-state assertions.
Tested: cargo test --bin ez --all-features; cargo test --test small_shared_cli --all-features; cargo clippy --all-targets --all-features -- -D warnings; cargo fmt --check; git diff --check
Not-tested: Windows-specific shell and file-lock behavior
@rohoswagger
rohoswagger merged commit c9eebdc into main Aug 4, 2026
6 checks passed
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