Title: test(cli): pin RollbackArgs flag surface + find_patches_to_rollback by mikolalysenko · Pull Request #71 · SocketDev/socket-patch · GitHub
Open Graph Title: test(cli): pin RollbackArgs flag surface + find_patches_to_rollback by mikolalysenko · Pull Request #71 · SocketDev/socket-patch
X Title: test(cli): pin RollbackArgs flag surface + find_patches_to_rollback by mikolalysenko · Pull Request #71 · SocketDev/socket-patch
Description: Summary Locks in the rollback subcommand's public CLI contract and adds unit-test coverage for its pure helper. New tests/cli_parse_rollback.rs — clap parser snapshot tests for RollbackArgs. Covers every long and short form, every default, the optional positional identifier (absent / UUID / PURL), --ecosystems CSV split, and a clap::error::ErrorKind::UnknownArgument failure path. Inline #[cfg(test)] mod tests in src/commands/rollback.rs — five cases for find_patches_to_rollback (no identifier returns all, PURL match, PURL miss, UUID match, UUID miss). Tests reach into the library surface via socket_patch_cli::Cli::try_parse_from(...); no binary spawn. Stacked on #67 (foundation). Base is tests/cli-contract-foundation. Test plan cargo build --workspace --all-features clean cargo clippy --workspace --all-features -- -D warnings clean cargo test --workspace --all-features --lib --tests — all 415 core + 5 cli lib + 24 new parser tests pass Assisted-by: Claude Code:claude-opus-4-7
Open Graph Description: Summary Locks in the rollback subcommand's public CLI contract and adds unit-test coverage for its pure helper. New tests/cli_parse_rollback.rs — clap parser snapshot tests for RollbackArgs. C...
X Description: Summary Locks in the rollback subcommand's public CLI contract and adds unit-test coverage for its pure helper. New tests/cli_parse_rollback.rs — clap parser snapshot tests for RollbackArg...
Opengraph URL: https://github.com/SocketDev/socket-patch/pull/71
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:53875c85-b904-af19-5276-ee28e407f88e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B514:16C3D3:29DD6E5:3A5C1B2:6A4F58F7 |
| html-safe-nonce | 2ff03e82d850f0a46d76278a6181f40276e0dfb616a506454a83c35daf1aa8a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTE0OjE2QzNEMzoyOURENkU1OjNBNUMxQjI6NkE0RjU4RjciLCJ2aXNpdG9yX2lkIjoiNzQzNTkxMjgxNzMzOTc1MDY0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | db66f4e010cabfa86f1297bc2d41fd9f496c860ae86aa3a474a86b20e5d4ec87 |
| hovercard-subject-tag | pull_request:3711909321 |
| 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/71/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 Locks in the rollback subcommand's public CLI contract and adds unit-test coverage for its pure helper. New tests/cli_parse_rollback.rs — clap parser snapshot tests for RollbackArgs. C... |
| 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