1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#[cfg(test)] mod tests { // use app_json_settings::ConfigManager; // #[test] // fn print_exec_dir_filepath() { // let filepath = exe_dir_filepath("test.json"); // // cargo test -- --nocapture // println!("{:?}", filepath); // assert!(filepath.as_os_str().to_str().is_some()) // } // #[test] // fn print_config_dir_filepath() { // let filepath = config_dir_filepath("test2.json"); // // cargo test -- --nocapture // println!("{:?}", filepath); // assert!(filepath.as_os_str().to_str().is_some()) // } }