My file structure is the following:
src/
bin/
testing/
mod.rs
main.rs
lib.rs
tests/
test.rs
I'm looking to test a function in testing/mod.rs
in tests/test.rs
, so I can use cargo test
.
As it stands, cargo test
, and cargo run
work independently. How can I test that function?