for example, I have a file structure that looks like this:

action/
   attack.rs
   attack.test.rs
   mod.rs

But this doesn't work in the mod file:

pub mod attack.test;

and neither does:

pub mod "attack.test";

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 3 points 3 years ago

Thanks, yeah it felt like too many tests to keep in file. I can live with that directory approach. TY!

  • source
  • parent