Skip to content

Commit 7aa43fa

Browse files
committed
test(resolve): Show more reporting cases
1 parent c41798a commit 7aa43fa

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
@@ -1087,33 +1087,57 @@ fn report_rust_versions() {
10871087
.rust_version("1.55.0")
10881088
.file("src/lib.rs", "fn other_stuff() {}")
10891089
.publish();
1090+
1091+
Package::new("dep-only-low-incompatible", "1.55.0")
1092+
.rust_version("1.55.0")
1093+
.file("src/lib.rs", "fn other_stuff() {}")
1094+
.publish();
10901095
Package::new("dep-only-low-incompatible", "1.75.0")
10911096
.rust_version("1.75.0")
10921097
.file("src/lib.rs", "fn other_stuff() {}")
10931098
.publish();
1099+
1100+
Package::new("dep-only-high-compatible", "1.55.0")
1101+
.rust_version("1.55.0")
1102+
.file("src/lib.rs", "fn other_stuff() {}")
1103+
.publish();
10941104
Package::new("dep-only-high-compatible", "1.65.0")
10951105
.rust_version("1.65.0")
10961106
.file("src/lib.rs", "fn other_stuff() {}")
10971107
.publish();
1108+
1109+
Package::new("dep-only-high-incompatible", "1.55.0")
1110+
.rust_version("1.55.0")
1111+
.file("src/lib.rs", "fn other_stuff() {}")
1112+
.publish();
10981113
Package::new("dep-only-high-incompatible", "1.75.0")
10991114
.rust_version("1.75.0")
11001115
.file("src/lib.rs", "fn other_stuff() {}")
11011116
.publish();
1117+
11021118
Package::new("dep-only-unset-unset", "1.0.0")
11031119
.file("src/lib.rs", "fn other_stuff() {}")
11041120
.publish();
1121+
1122+
Package::new("dep-only-unset-compatible", "1.55.0")
1123+
.rust_version("1.55.0")
1124+
.file("src/lib.rs", "fn other_stuff() {}")
1125+
.publish();
11051126
Package::new("dep-only-unset-compatible", "1.75.0")
11061127
.rust_version("1.75.0")
11071128
.file("src/lib.rs", "fn other_stuff() {}")
11081129
.publish();
1130+
11091131
Package::new("dep-only-unset-incompatible", "1.2345.0")
11101132
.rust_version("1.2345.0")
11111133
.file("src/lib.rs", "fn other_stuff() {}")
11121134
.publish();
1135+
11131136
Package::new("dep-shared-compatible", "1.55.0")
11141137
.rust_version("1.55.0")
11151138
.file("src/lib.rs", "fn other_stuff() {}")
11161139
.publish();
1140+
11171141
Package::new("dep-shared-incompatible", "1.75.0")
11181142
.rust_version("1.75.0")
11191143
.file("src/lib.rs", "fn other_stuff() {}")
@@ -1184,8 +1208,10 @@ fn report_rust_versions() {
11841208
.with_stderr_data(str![[r#"
11851209
[UPDATING] `dummy-registry` index
11861210
[LOCKING] 9 packages to latest Rust 1.60.0 compatible versions
1187-
[ADDING] dep-only-high-incompatible v1.75.0 (requires Rust 1.75.0)
1188-
[ADDING] dep-only-low-incompatible v1.75.0 (requires Rust 1.75.0)
1211+
[ADDING] dep-only-high-compatible v1.55.0 (available: v1.65.0)
1212+
[ADDING] dep-only-high-incompatible v1.55.0 (available: v1.75.0, requires Rust 1.75.0)
1213+
[ADDING] dep-only-low-incompatible v1.55.0 (available: v1.75.0, requires Rust 1.75.0)
1214+
[ADDING] dep-only-unset-compatible v1.55.0 (available: v1.75.0)
11891215
[ADDING] dep-only-unset-incompatible v1.2345.0 (requires Rust 1.2345.0)
11901216
[ADDING] dep-shared-incompatible v1.75.0 (requires Rust 1.75.0)
11911217

0 commit comments

Comments
 (0)