Skip to content

Commit 72694e8

Browse files
committed
Fix tests
1 parent 58bc357 commit 72694e8

File tree

4 files changed

+91
-1
lines changed

4 files changed

+91
-1
lines changed

tests/testsuite/alt_registry.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ fn publish_with_registry_dependency() {
359359
"readme": null,
360360
"readme_file": null,
361361
"repository": null,
362+
"homepage": null,
363+
"documentation": null,
362364
"vers": "0.0.1"
363365
}"#,
364366
"foo-0.0.1.crate",
@@ -459,6 +461,8 @@ fn publish_to_alt_registry() {
459461
"readme": null,
460462
"readme_file": null,
461463
"repository": null,
464+
"homepage": null,
465+
"documentation": null,
462466
"vers": "0.0.1"
463467
}"#,
464468
"foo-0.0.1.crate",
@@ -522,6 +526,8 @@ fn publish_with_crates_io_dep() {
522526
"readme": null,
523527
"readme_file": null,
524528
"repository": null,
529+
"homepage": null,
530+
"documentation": null,
525531
"vers": "0.0.1"
526532
}"#,
527533
"foo-0.0.1.crate",
@@ -814,6 +820,8 @@ fn alt_reg_metadata() {
814820
"keywords": [],
815821
"readme": null,
816822
"repository": null,
823+
"homepage": null,
824+
"documentation": null,
817825
"edition": "2015",
818826
"links": null
819827
}
@@ -868,6 +876,8 @@ fn alt_reg_metadata() {
868876
"keywords": [],
869877
"readme": null,
870878
"repository": null,
879+
"homepage": null,
880+
"documentation": null,
871881
"edition": "2015",
872882
"links": null
873883
},
@@ -890,6 +900,8 @@ fn alt_reg_metadata() {
890900
"keywords": [],
891901
"readme": null,
892902
"repository": null,
903+
"homepage": null,
904+
"documentation": null,
893905
"edition": "2015",
894906
"links": null
895907
},
@@ -912,6 +924,8 @@ fn alt_reg_metadata() {
912924
"keywords": [],
913925
"readme": null,
914926
"repository": null,
927+
"homepage": null,
928+
"documentation": null,
915929
"edition": "2015",
916930
"links": null
917931
},
@@ -959,6 +973,8 @@ fn alt_reg_metadata() {
959973
"keywords": [],
960974
"readme": null,
961975
"repository": null,
976+
"homepage": null,
977+
"documentation": null,
962978
"edition": "2015",
963979
"links": null
964980
},
@@ -994,6 +1010,8 @@ fn alt_reg_metadata() {
9941010
"keywords": [],
9951011
"readme": null,
9961012
"repository": null,
1013+
"homepage": null,
1014+
"documentation": null,
9971015
"edition": "2015",
9981016
"links": null
9991017
}
@@ -1087,6 +1105,8 @@ fn unknown_registry() {
10871105
"keywords": [],
10881106
"readme": null,
10891107
"repository": null,
1108+
"homepage": null,
1109+
"documentation": null,
10901110
"edition": "2015",
10911111
"links": null
10921112
},
@@ -1109,6 +1129,8 @@ fn unknown_registry() {
11091129
"keywords": [],
11101130
"readme": null,
11111131
"repository": null,
1132+
"homepage": null,
1133+
"documentation": null,
11121134
"edition": "2015",
11131135
"links": null
11141136
},
@@ -1144,6 +1166,8 @@ fn unknown_registry() {
11441166
"keywords": [],
11451167
"readme": null,
11461168
"repository": null,
1169+
"homepage": null,
1170+
"documentation": null,
11471171
"edition": "2015",
11481172
"links": null
11491173
}

tests/testsuite/metadata.rs

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ fn cargo_metadata_simple() {
3333
"description": null,
3434
"readme": null,
3535
"repository": null,
36+
"homepage": null,
37+
"documentation": null,
38+
"homepage": null,
39+
"documentation": null,
3640
"targets": [
3741
{
3842
"kind": [
@@ -115,6 +119,8 @@ crate-type = ["lib", "staticlib"]
115119
"name": "foo",
116120
"readme": null,
117121
"repository": null,
122+
"homepage": null,
123+
"documentation": null,
118124
"version": "0.5.0",
119125
"id": "foo[..]",
120126
"keywords": [],
@@ -199,6 +205,8 @@ optional_feat = []
199205
"name": "foo",
200206
"readme": null,
201207
"repository": null,
208+
"homepage": null,
209+
"documentation": null,
202210
"version": "0.5.0",
203211
"id": "foo[..]",
204212
"keywords": [],
@@ -324,6 +332,8 @@ fn cargo_metadata_with_deps_and_version() {
324332
"name": "bar",
325333
"readme": null,
326334
"repository": null,
335+
"homepage": null,
336+
"documentation": null,
327337
"source": "registry+https://github.com/rust-lang/crates.io-index",
328338
"targets": [
329339
{
@@ -360,6 +370,8 @@ fn cargo_metadata_with_deps_and_version() {
360370
"name": "baz",
361371
"readme": null,
362372
"repository": null,
373+
"homepage": null,
374+
"documentation": null,
363375
"source": "registry+https://github.com/rust-lang/crates.io-index",
364376
"targets": [
365377
{
@@ -421,6 +433,8 @@ fn cargo_metadata_with_deps_and_version() {
421433
"name": "foo",
422434
"readme": null,
423435
"repository": null,
436+
"homepage": null,
437+
"documentation": null,
424438
"source": null,
425439
"targets": [
426440
{
@@ -457,6 +471,8 @@ fn cargo_metadata_with_deps_and_version() {
457471
"name": "foobar",
458472
"readme": null,
459473
"repository": null,
474+
"homepage": null,
475+
"documentation": null,
460476
"source": "registry+https://github.com/rust-lang/crates.io-index",
461477
"targets": [
462478
{
@@ -583,6 +599,8 @@ name = "ex"
583599
"name": "foo",
584600
"readme": null,
585601
"repository": null,
602+
"homepage": null,
603+
"documentation": null,
586604
"version": "0.1.0",
587605
"id": "foo[..]",
588606
"keywords": [],
@@ -672,6 +690,8 @@ crate-type = ["rlib", "dylib"]
672690
"name": "foo",
673691
"readme": null,
674692
"repository": null,
693+
"homepage": null,
694+
"documentation": null,
675695
"version": "0.1.0",
676696
"id": "foo[..]",
677697
"keywords": [],
@@ -770,6 +790,8 @@ fn workspace_metadata() {
770790
"id": "bar[..]",
771791
"readme": null,
772792
"repository": null,
793+
"homepage": null,
794+
"documentation": null,
773795
"keywords": [],
774796
"source": null,
775797
"dependencies": [],
@@ -802,6 +824,8 @@ fn workspace_metadata() {
802824
"name": "baz",
803825
"readme": null,
804826
"repository": null,
827+
"homepage": null,
828+
"documentation": null,
805829
"version": "0.5.0",
806830
"id": "baz[..]",
807831
"keywords": [],
@@ -891,6 +915,8 @@ fn workspace_metadata_no_deps() {
891915
"name": "bar",
892916
"readme": null,
893917
"repository": null,
918+
"homepage": null,
919+
"documentation": null,
894920
"version": "0.5.0",
895921
"id": "bar[..]",
896922
"keywords": [],
@@ -925,6 +951,8 @@ fn workspace_metadata_no_deps() {
925951
"name": "baz",
926952
"readme": null,
927953
"repository": null,
954+
"homepage": null,
955+
"documentation": null,
928956
"version": "0.5.0",
929957
"id": "baz[..]",
930958
"keywords": [],
@@ -1011,7 +1039,9 @@ const MANIFEST_OUTPUT: &str = r#"
10111039
"metadata": null,
10121040
"publish": null,
10131041
"readme": null,
1014-
"repository": null
1042+
"repository": null,
1043+
"homepage": null,
1044+
"documentation": null
10151045
}],
10161046
"workspace_members": [ "foo 0.5.0 (path+file:[..]foo)" ],
10171047
"resolve": null,
@@ -1169,6 +1199,8 @@ fn package_metadata() {
11691199
"name": "foo",
11701200
"readme": "README.md",
11711201
"repository": "https://github.com/rust-lang/cargo",
1202+
"homepage": null,
1203+
"documentation": null,
11721204
"version": "0.1.0",
11731205
"id": "foo[..]",
11741206
"keywords": ["database"],
@@ -1243,6 +1275,8 @@ fn package_publish() {
12431275
"name": "foo",
12441276
"readme": "README.md",
12451277
"repository": "https://github.com/rust-lang/cargo",
1278+
"homepage": null,
1279+
"documentation": null,
12461280
"version": "0.1.0",
12471281
"id": "foo[..]",
12481282
"keywords": ["database"],
@@ -1326,6 +1360,8 @@ fn cargo_metadata_path_to_cargo_toml_project() {
13261360
"name": "bar",
13271361
"readme": null,
13281362
"repository": null,
1363+
"homepage": null,
1364+
"documentation": null,
13291365
"source": null,
13301366
"targets": [
13311367
{
@@ -1409,6 +1445,8 @@ fn package_edition_2018() {
14091445
"name": "foo",
14101446
"readme": null,
14111447
"repository": null,
1448+
"homepage": null,
1449+
"documentation": null,
14121450
"source": null,
14131451
"targets": [
14141452
{
@@ -1496,6 +1534,8 @@ fn target_edition_2018() {
14961534
"name": "foo",
14971535
"readme": null,
14981536
"repository": null,
1537+
"homepage": null,
1538+
"documentation": null,
14991539
"source": null,
15001540
"targets": [
15011541
{
@@ -1597,6 +1637,8 @@ fn rename_dependency() {
15971637
"name": "bar",
15981638
"readme": null,
15991639
"repository": null,
1640+
"homepage": null,
1641+
"documentation": null,
16001642
"source": "registry+https://github.com/rust-lang/crates.io-index",
16011643
"targets": [
16021644
{
@@ -1633,6 +1675,8 @@ fn rename_dependency() {
16331675
"name": "bar",
16341676
"readme": null,
16351677
"repository": null,
1678+
"homepage": null,
1679+
"documentation": null,
16361680
"source": "registry+https://github.com/rust-lang/crates.io-index",
16371681
"targets": [
16381682
{
@@ -1694,6 +1738,8 @@ fn rename_dependency() {
16941738
"name": "foo",
16951739
"readme": null,
16961740
"repository": null,
1741+
"homepage": null,
1742+
"documentation": null,
16971743
"source": null,
16981744
"targets": [
16991745
{
@@ -1811,6 +1857,8 @@ fn metadata_links() {
18111857
"name": "foo",
18121858
"readme": null,
18131859
"repository": null,
1860+
"homepage": null,
1861+
"documentation": null,
18141862
"source": null,
18151863
"targets": [
18161864
{
@@ -1936,6 +1984,8 @@ fn deps_with_bin_only() {
19361984
"keywords": [],
19371985
"readme": null,
19381986
"repository": null,
1987+
"homepage": null,
1988+
"documentation": null,
19391989
"edition": "2015",
19401990
"links": null
19411991
}
@@ -2036,6 +2086,8 @@ fn filter_platform() {
20362086
"keywords": [],
20372087
"readme": null,
20382088
"repository": null,
2089+
"homepage": null,
2090+
"documentation": null,
20392091
"edition": "2015",
20402092
"links": null
20412093
}
@@ -2075,6 +2127,8 @@ fn filter_platform() {
20752127
"keywords": [],
20762128
"readme": null,
20772129
"repository": null,
2130+
"homepage": null,
2131+
"documentation": null,
20782132
"edition": "2015",
20792133
"links": null
20802134
}
@@ -2114,6 +2168,8 @@ fn filter_platform() {
21142168
"keywords": [],
21152169
"readme": null,
21162170
"repository": null,
2171+
"homepage": null,
2172+
"documentation": null,
21172173
"edition": "2015",
21182174
"links": null
21192175
}
@@ -2153,6 +2209,8 @@ fn filter_platform() {
21532209
"keywords": [],
21542210
"readme": null,
21552211
"repository": null,
2212+
"homepage": null,
2213+
"documentation": null,
21562214
"edition": "2015",
21572215
"links": null
21582216
}
@@ -2241,6 +2299,8 @@ fn filter_platform() {
22412299
"keywords": [],
22422300
"readme": null,
22432301
"repository": null,
2302+
"homepage": null,
2303+
"documentation": null,
22442304
"edition": "2015",
22452305
"links": null
22462306
}

tests/testsuite/read_manifest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fn manifest_output(readme_value: &str) -> String {
1212
"categories": [],
1313
"name":"foo",
1414
"readme": {},
15+
"homepage": null,
16+
"documentation": null,
1517
"repository": null,
1618
"version":"0.5.0",
1719
"id":"foo[..]0.5.0[..](path+file://[..]/foo)",

0 commit comments

Comments
 (0)