mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

test: migrate registry and registry_auth to snapbox ### What does this PR try to resolve? Part of https://github.com/rust-lang/cargo/issues/14039. Migrate following to snapbox: - `tests/testsuite/registry.rs` - `tests/testsuite/registry_auth.rs` ### Additional information Parameterize shared logic over inline snapshots to prevent the content from being appended multiple times in `str![]` when it's called multiple times within a reusable function. Big thanks to `@weihanglo` for helping me out!