Skip to content

Commit be2e7f4

Browse files
committed
test(resolve): Show more reporting cases
1 parent a246fd5 commit be2e7f4

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

tests/testsuite/rust_version.rs

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,33 +1113,57 @@ fn report_rust_versions() {
11131113
.rust_version("1.55.0")
11141114
.file("src/lib.rs", "fn other_stuff() {}")
11151115
.publish();
1116+
1117+
Package::new("dep-only-low-incompatible", "1.55.0")
1118+
.rust_version("1.55.0")
1119+
.file("src/lib.rs", "fn other_stuff() {}")
1120+
.publish();
11161121
Package::new("dep-only-low-incompatible", "1.75.0")
11171122
.rust_version("1.75.0")
11181123
.file("src/lib.rs", "fn other_stuff() {}")
11191124
.publish();
1125+
1126+
Package::new("dep-only-high-compatible", "1.55.0")
1127+
.rust_version("1.55.0")
1128+
.file("src/lib.rs", "fn other_stuff() {}")
1129+
.publish();
11201130
Package::new("dep-only-high-compatible", "1.65.0")
11211131
.rust_version("1.65.0")
11221132
.file("src/lib.rs", "fn other_stuff() {}")
11231133
.publish();
1134+
1135+
Package::new("dep-only-high-incompatible", "1.55.0")
1136+
.rust_version("1.55.0")
1137+
.file("src/lib.rs", "fn other_stuff() {}")
1138+
.publish();
11241139
Package::new("dep-only-high-incompatible", "1.75.0")
11251140
.rust_version("1.75.0")
11261141
.file("src/lib.rs", "fn other_stuff() {}")
11271142
.publish();
1143+
11281144
Package::new("dep-only-unset-unset", "1.0.0")
11291145
.file("src/lib.rs", "fn other_stuff() {}")
11301146
.publish();
1147+
1148+
Package::new("dep-only-unset-compatible", "1.55.0")
1149+
.rust_version("1.55.0")
1150+
.file("src/lib.rs", "fn other_stuff() {}")
1151+
.publish();
11311152
Package::new("dep-only-unset-compatible", "1.75.0")
11321153
.rust_version("1.75.0")
11331154
.file("src/lib.rs", "fn other_stuff() {}")
11341155
.publish();
1156+
11351157
Package::new("dep-only-unset-incompatible", "1.2345.0")
11361158
.rust_version("1.2345.0")
11371159
.file("src/lib.rs", "fn other_stuff() {}")
11381160
.publish();
1161+
11391162
Package::new("dep-shared-compatible", "1.55.0")
11401163
.rust_version("1.55.0")
11411164
.file("src/lib.rs", "fn other_stuff() {}")
11421165
.publish();
1166+
11431167
Package::new("dep-shared-incompatible", "1.75.0")
11441168
.rust_version("1.75.0")
11451169
.file("src/lib.rs", "fn other_stuff() {}")
@@ -1210,8 +1234,10 @@ fn report_rust_versions() {
12101234
.with_stderr_data(str![[r#"
12111235
[UPDATING] `dummy-registry` index
12121236
[LOCKING] 9 packages to latest Rust 1.60.0 compatible versions
1213-
[ADDING] dep-only-high-incompatible v1.75.0 (requires Rust 1.75.0)
1214-
[ADDING] dep-only-low-incompatible v1.75.0 (requires Rust 1.75.0)
1237+
[ADDING] dep-only-high-compatible v1.55.0 (available: v1.65.0)
1238+
[ADDING] dep-only-high-incompatible v1.55.0 (available: v1.75.0, requires Rust 1.75.0)
1239+
[ADDING] dep-only-low-incompatible v1.55.0 (available: v1.75.0, requires Rust 1.75.0)
1240+
[ADDING] dep-only-unset-compatible v1.55.0 (available: v1.75.0)
12151241
[ADDING] dep-only-unset-incompatible v1.2345.0 (requires Rust 1.2345.0)
12161242
[ADDING] dep-shared-incompatible v1.75.0 (requires Rust 1.75.0)
12171243

0 commit comments

Comments
 (0)