You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2024. It is now read-only.
In main.rs, add a unit test for the cargo_dir function that checks that it returns the correct source code directory for a crate that is a dependency of a crate that is a top-level dependency.
For example, clap is one of this project's top-level dependencies, and ansi_term is one of clap's dependencies. So if we run cargo_dir("ansi_term") in the context of this project, we should get the correct source code directory for ansi_term even though it's not in the Cargo.toml file directly.
The text was updated successfully, but these errors were encountered:
carols10cents
changed the title
Add tests for trying to open a crate that is a dependency of a dependency
Add a test for getting the directory of a crate that is a dependency of a dependency
Oct 4, 2015
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In
main.rs
, add a unit test for thecargo_dir
function that checks that it returns the correct source code directory for a crate that is a dependency of a crate that is a top-level dependency.For example,
clap
is one of this project's top-level dependencies, andansi_term
is one ofclap
's dependencies. So if we runcargo_dir("ansi_term")
in the context of this project, we should get the correct source code directory foransi_term
even though it's not in theCargo.toml
file directly.The text was updated successfully, but these errors were encountered: