Title: test(cli): pin RepairArgs flag surface (download-mode=file, gc alias) by mikolalysenko · Pull Request #75 · SocketDev/socket-patch · GitHub
Open Graph Title: test(cli): pin RepairArgs flag surface (download-mode=file, gc alias) by mikolalysenko · Pull Request #75 · SocketDev/socket-patch
X Title: test(cli): pin RepairArgs flag surface (download-mode=file, gc alias) by mikolalysenko · Pull Request #75 · SocketDev/socket-patch
Description: Summary Adds parser-level integration tests for the repair subcommand to lock in its public clap contract. The key invariant guarded here is that --download-mode defaults to "file" for repair — diverging from every other command's "diff" default. repair restores legacy per-file blobs needed to apply any patch, so a silent flip to "diff" would break that path with no parser-level signal. The gc visible alias is also exercised (both bare and with a flag) so a refactor that drops it is caught immediately. Every flag in the repair row of CLI_CONTRACT.md is now covered. This PR is stacked on tests/cli-contract-foundation (#67). Coverage Defaults: cwd, manifest-path, dry-run, offline, download-only, json, and the divergent download-mode = "file". Long and short flag forms for --dry-run / -d and --manifest-path / -m. All three valid --download-mode values: file, diff, package. gc alias defaults match repair defaults exactly. gc alias accepts flags (--dry-run). Unknown flag fails with clap::error::ErrorKind::UnknownArgument. Test plan cargo build --workspace --all-features cargo test --workspace --all-features --lib --tests — 15 new tests pass, no regressions cargo clippy --all-features --test cli_parse_repair -- -D warnings clean on the new file Assisted-by: Claude Code:claude-opus-4-7
Open Graph Description: Summary Adds parser-level integration tests for the repair subcommand to lock in its public clap contract. The key invariant guarded here is that --download-mode defaults to "file" for re...
X Description: Summary Adds parser-level integration tests for the repair subcommand to lock in its public clap contract. The key invariant guarded here is that --download-mode defaults to "file"...
Opengraph URL: https://github.com/SocketDev/socket-patch/pull/75
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d1296a1e-925f-7839-c5fa-269b5a9ce706 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C294:418ED:42E91EC:5C088C9:6A4F478F |
| html-safe-nonce | bcd528fa06a2c75d6764e71a4182d44a9c4e7cb86980d7a3a49bfafdee884815 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjk0OjQxOEVEOjQyRTkxRUM6NUMwODhDOTo2QTRGNDc4RiIsInZpc2l0b3JfaWQiOiIzMjI2MTQ5NDc3Njk0Nzg1NDIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1bf85a96f1310cac3e278e0378eec42d65aba47afaddd50e9f4321a7f76f6eb0 |
| hovercard-subject-tag | pull_request:3711916797 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/SocketDev/socket-patch/pull/75/files |
| twitter:image | https://avatars.githubusercontent.com/u/231686?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/231686?s=400&v=4 |
| og:image:alt | Summary Adds parser-level integration tests for the repair subcommand to lock in its public clap contract. The key invariant guarded here is that --download-mode defaults to "file" for re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/SocketDev/socket-patch git https://github.com/SocketDev/socket-patch.git |
| octolytics-dimension-user_id | 69326764 |
| octolytics-dimension-user_login | SocketDev |
| octolytics-dimension-repository_id | 1093661456 |
| octolytics-dimension-repository_nwo | SocketDev/socket-patch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1093661456 |
| octolytics-dimension-repository_network_root_nwo | SocketDev/socket-patch |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width