-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Transition direct assertions from cargo-test-support to snapbox #13980
Changes from all commits
995c2b7
f22c43b
94119af
ea36ed0
fe5c2d3
3054936
eee1053
995746b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
//! Tests for alternative registries. | ||
|
||
use cargo_test_support::compare::assert_match_exact; | ||
use cargo_test_support::compare::assert_e2e; | ||
use cargo_test_support::publish::validate_alt_upload; | ||
use cargo_test_support::registry::{self, Package, RegistryBuilder}; | ||
use cargo_test_support::str; | ||
use cargo_test_support::{basic_manifest, paths, project}; | ||
use std::fs; | ||
|
||
|
@@ -1476,9 +1477,10 @@ fn sparse_lockfile() { | |
.build(); | ||
|
||
p.cargo("generate-lockfile").run(); | ||
assert_match_exact( | ||
assert_e2e().eq( | ||
&p.read_lockfile(), | ||
r#"# This file is automatically @generated by Cargo. | ||
str![[r##" | ||
# This file is automatically @generated by Cargo. | ||
# It is not intended for manual editing. | ||
version = 3 | ||
|
||
|
@@ -1492,8 +1494,10 @@ dependencies = [ | |
[[package]] | ||
name = "foo" | ||
version = "0.1.0" | ||
source = "sparse+http://[..]/" | ||
checksum = "458c1addb23fde7dfbca0410afdbcc0086f96197281ec304d9e0e10def3cb899""#, | ||
source = "sparse+http://127.0.0.1:[..]/index/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. I had snapshot updating process all of these and re-added the globbing. I tried to be more limited in where I added globs. I also tried to find where we could replace globs with something else (e.g. the I could possibly detect localhost with a port and redact the port ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. Make sense. Thanks! |
||
checksum = "458c1addb23fde7dfbca0410afdbcc0086f96197281ec304d9e0e10def3cb899" | ||
|
||
"##]], | ||
); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess we might want to add
[CWD]
in the future. Nevertheless it is not a blocker.