Skip to content

Commit

Permalink
Make paths in test absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
alibektas committed Nov 23, 2023
1 parent be91d95 commit 7dabf27
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
32 changes: 16 additions & 16 deletions crates/project-model/test_data/deduplication_crate_graph_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "p1",
"version": "0.1.0",
"id": "p1 0.1.0 (path+file:///example_project/p1)",
"id": "p1 0.1.0 (path+file://example_project/p1)",
"license": null,
"license_file": null,
"description": null,
Expand All @@ -20,7 +20,7 @@
"features": [],
"target": null,
"registry": null,
"path": "/example_project/p2"
"path": "example_project/p2"
}
],
"targets": [
Expand All @@ -32,15 +32,15 @@
"lib"
],
"name": "p1",
"src_path": "/example_project/p1/src/lib.rs",
"src_path": "example_project/p1/src/lib.rs",
"edition": "2021",
"doc": true,
"doctest": true,
"test": true
}
],
"features": {},
"manifest_path": "/example_project/p1/Cargo.toml",
"manifest_path": "example_project/p1/Cargo.toml",
"metadata": null,
"publish": null,
"authors": [],
Expand All @@ -58,7 +58,7 @@
{
"name": "p2",
"version": "0.1.0",
"id": "p2 0.1.0 (path+file:///example_project/p2)",
"id": "p2 0.1.0 (path+file://example_project/p2)",
"license": null,
"license_file": null,
"description": null,
Expand All @@ -73,15 +73,15 @@
"lib"
],
"name": "p2",
"src_path": "/example_project/p2/src/lib.rs",
"src_path": "example_project/p2/src/lib.rs",
"edition": "2021",
"doc": true,
"doctest": true,
"test": true
}
],
"features": {},
"manifest_path": "/example_project/p2/Cargo.toml",
"manifest_path": "example_project/p2/Cargo.toml",
"metadata": null,
"publish": null,
"authors": [],
Expand All @@ -98,22 +98,22 @@
}
],
"workspace_members": [
"p1 0.1.0 (path+file:///example_project/p1)"
"p1 0.1.0 (path+file://example_project/p1)"
],
"workspace_default_members": [
"p1 0.1.0 (path+file:///example_project/p1)"
"p1 0.1.0 (path+file://example_project/p1)"
],
"resolve": {
"nodes": [
{
"id": "p1 0.1.0 (path+file:///example_project/p1)",
"id": "p1 0.1.0 (path+file://example_project/p1)",
"dependencies": [
"p2 0.1.0 (path+file:///example_project/p2)"
"p2 0.1.0 (path+file://example_project/p2)"
],
"deps": [
{
"name": "p2",
"pkg": "p2 0.1.0 (path+file:///example_project/p2)",
"pkg": "p2 0.1.0 (path+file://example_project/p2)",
"dep_kinds": [
{
"kind": null,
Expand All @@ -125,16 +125,16 @@
"features": []
},
{
"id": "p2 0.1.0 (path+file:///example_project/p2)",
"id": "p2 0.1.0 (path+file://example_project/p2)",
"dependencies": [],
"deps": [],
"features": []
}
],
"root": "p1 0.1.0 (path+file:///example_project/p1)"
"root": "p1 0.1.0 (path+file://example_project/p1)"
},
"target_directory": "/example_project/p1/target",
"target_directory": "example_project/p1/target",
"version": 1,
"workspace_root": "/example_project/p1",
"workspace_root": "example_project/p1",
"metadata": null
}
18 changes: 9 additions & 9 deletions crates/project-model/test_data/deduplication_crate_graph_B.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "p2",
"version": "0.1.0",
"id": "p2 0.1.0 (path+file:///example_project/p2)",
"id": "p2 0.1.0 (path+file://example_project/p2)",
"license": null,
"license_file": null,
"description": null,
Expand All @@ -18,15 +18,15 @@
"lib"
],
"name": "p2",
"src_path": "/example_project/p2/src/lib.rs",
"src_path": "example_project/p2/src/lib.rs",
"edition": "2021",
"doc": true,
"doctest": true,
"test": true
}
],
"features": {},
"manifest_path": "/example_project/p2/Cargo.toml",
"manifest_path": "example_project/p2/Cargo.toml",
"metadata": null,
"publish": null,
"authors": [],
Expand All @@ -43,24 +43,24 @@
}
],
"workspace_members": [
"p2 0.1.0 (path+file:///example_project/p2)"
"p2 0.1.0 (path+file://example_project/p2)"
],
"workspace_default_members": [
"p2 0.1.0 (path+file:///example_project/p2)"
"p2 0.1.0 (path+file://example_project/p2)"
],
"resolve": {
"nodes": [
{
"id": "p2 0.1.0 (path+file:///example_project/p2)",
"id": "p2 0.1.0 (path+file://example_project/p2)",
"dependencies": [],
"deps": [],
"features": []
}
],
"root": "p2 0.1.0 (path+file:///example_project/p2)"
"root": "p2 0.1.0 (path+file://example_project/p2)"
},
"target_directory": "/example_project/p2/target",
"target_directory": "example_project/p2/target",
"version": 1,
"workspace_root": "/example_project/p2",
"workspace_root": "example_project/p2",
"metadata": null
}

0 comments on commit 7dabf27

Please sign in to comment.