From b878e1693590f820a39f6b173a2f68d0c6385f19 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Fri, 22 Mar 2024 07:16:21 -0400 Subject: [PATCH] `dep_tests` -> `deps_tests` --- Cargo.toml | 2 +- {dep_tests => deps_tests}/README.md | 2 +- {dep_tests => deps_tests}/cargo_0.70.1.deps.json | 0 {dep_tests => deps_tests}/cargo_0.70.1.deps_no_dev.json | 0 {dep_tests => deps_tests}/cargo_0.70.1.metadata.json | 0 {dep_tests => deps_tests}/snapbox_0.4.11.deps.json | 0 {dep_tests => deps_tests}/snapbox_0.4.11.deps_no_dev.json | 0 {dep_tests => deps_tests}/snapbox_0.4.11.metadata.json | 0 src/common.rs | 8 ++++---- 9 files changed, 6 insertions(+), 6 deletions(-) rename {dep_tests => deps_tests}/README.md (87%) rename {dep_tests => deps_tests}/cargo_0.70.1.deps.json (100%) rename {dep_tests => deps_tests}/cargo_0.70.1.deps_no_dev.json (100%) rename {dep_tests => deps_tests}/cargo_0.70.1.metadata.json (100%) rename {dep_tests => deps_tests}/snapbox_0.4.11.deps.json (100%) rename {dep_tests => deps_tests}/snapbox_0.4.11.deps_no_dev.json (100%) rename {dep_tests => deps_tests}/snapbox_0.4.11.metadata.json (100%) diff --git a/Cargo.toml b/Cargo.toml index 974fe4b..802b133 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ authors = ["Andreas Molzer ", "Sergey \"Shnatsel\" Davido edition = "2018" license = "Apache-2.0 OR MIT OR Zlib" categories = ["development-tools::cargo-plugins", "command-line-utilities"] -exclude = ["dep_tests/"] +exclude = ["deps_tests/"] [dependencies] cargo_metadata = "0.15.0" diff --git a/dep_tests/README.md b/deps_tests/README.md similarity index 87% rename from dep_tests/README.md rename to deps_tests/README.md index 4e83697..6c1ffb9 100644 --- a/dep_tests/README.md +++ b/deps_tests/README.md @@ -8,7 +8,7 @@ Each of the `.metadata.json` files was generated with a command of the following cargo metadata | sed "s,${PWD},\$CARGO_MANIFEST_DIR,g" | sed "s,${HOME},\$HOME,g" | -jq --sort-keys > ${CARGO_SUPPLY_CHAIN_DIR}/dep_tests/${PACKAGE}_${VERSION}.metadata.json +jq --sort-keys > ${CARGO_SUPPLY_CHAIN_DIR}/deps_tests/${PACKAGE}_${VERSION}.metadata.json ``` The other files were then generated with the following command: diff --git a/dep_tests/cargo_0.70.1.deps.json b/deps_tests/cargo_0.70.1.deps.json similarity index 100% rename from dep_tests/cargo_0.70.1.deps.json rename to deps_tests/cargo_0.70.1.deps.json diff --git a/dep_tests/cargo_0.70.1.deps_no_dev.json b/deps_tests/cargo_0.70.1.deps_no_dev.json similarity index 100% rename from dep_tests/cargo_0.70.1.deps_no_dev.json rename to deps_tests/cargo_0.70.1.deps_no_dev.json diff --git a/dep_tests/cargo_0.70.1.metadata.json b/deps_tests/cargo_0.70.1.metadata.json similarity index 100% rename from dep_tests/cargo_0.70.1.metadata.json rename to deps_tests/cargo_0.70.1.metadata.json diff --git a/dep_tests/snapbox_0.4.11.deps.json b/deps_tests/snapbox_0.4.11.deps.json similarity index 100% rename from dep_tests/snapbox_0.4.11.deps.json rename to deps_tests/snapbox_0.4.11.deps.json diff --git a/dep_tests/snapbox_0.4.11.deps_no_dev.json b/deps_tests/snapbox_0.4.11.deps_no_dev.json similarity index 100% rename from dep_tests/snapbox_0.4.11.deps_no_dev.json rename to deps_tests/snapbox_0.4.11.deps_no_dev.json diff --git a/dep_tests/snapbox_0.4.11.metadata.json b/deps_tests/snapbox_0.4.11.metadata.json similarity index 100% rename from dep_tests/snapbox_0.4.11.metadata.json rename to deps_tests/snapbox_0.4.11.metadata.json diff --git a/src/common.rs b/src/common.rs index 19589e8..91fb226 100644 --- a/src/common.rs +++ b/src/common.rs @@ -241,7 +241,7 @@ mod tests { #[test] fn deps() { - for entry in read_dir("dep_tests").unwrap() { + for entry in read_dir("deps_tests").unwrap() { let entry = entry.unwrap(); let path = entry.path(); @@ -281,7 +281,7 @@ mod tests { #[test] fn cargo() { - let deps = sourced_dependencies_from_file("dep_tests/cargo_0.70.1.deps.json"); + let deps = sourced_dependencies_from_file("deps_tests/cargo_0.70.1.deps.json"); assert!(deps.iter().any(|dep| dep.package.name == "snapbox")); assert!(deps.iter().any(|dep| dep.package.name == "snapbox-macros")); @@ -289,7 +289,7 @@ mod tests { #[test] fn cargo_no_dev() { - let deps = sourced_dependencies_from_file("dep_tests/cargo_0.70.1.deps_no_dev.json"); + let deps = sourced_dependencies_from_file("deps_tests/cargo_0.70.1.deps_no_dev.json"); assert!(deps.iter().all(|dep| dep.package.name != "snapbox")); assert!(deps.iter().all(|dep| dep.package.name != "snapbox-macros")); @@ -297,7 +297,7 @@ mod tests { #[test] fn snapbox() { - let deps = sourced_dependencies_from_file("dep_tests/snapbox_0.4.11.deps.json"); + let deps = sourced_dependencies_from_file("deps_tests/snapbox_0.4.11.deps.json"); assert!(deps.iter().any(|dep| dep.package.name == "snapbox-macros")); }