Skip to content

Commit

Permalink
dep_tests -> deps_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Mar 22, 2024
1 parent 7532983 commit b878e16
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["Andreas Molzer <[email protected]>", "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"
Expand Down
2 changes: 1 addition & 1 deletion dep_tests/README.md → deps_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -281,23 +281,23 @@ 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"));
}

#[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"));
}

#[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"));
}
Expand Down

0 comments on commit b878e16

Please sign in to comment.