storm_workspace/
lib.rs

1pub mod errors;
2pub mod utils;
3
4// #[cfg(test)]
5// mod tests {
6//   use crate::utils::get_workspace_root;
7//   use std::fs::read_to_string;
8
9//   #[test]
10//   fn it_should_find_workspace_root() {
11//     let crate_name = "name = 'storm-ops'";
12
13//     let workspace_root = get_workspace_root().expect("There is no project root");
14//     let toml_path = workspace_root.to_str().unwrap().to_owned() + "/Cargo.toml";
15//     let toml_string = read_to_string(toml_path).unwrap();
16
17//     assert!(toml_string.contains(crate_name));
18//   }
19// }