(base_input_path: &Path, input_path: &Path, fn_name: &str)
| 303 | } |
| 304 | |
| 305 | fn generate_hook_name(base_input_path: &Path, input_path: &Path, fn_name: &str) -> String { |
| 306 | let relative_file_path = input_path.strip_prefix(base_input_path).unwrap(); |
| 307 | |
| 308 | let mut hook_name: Vec<String> = file_path_to_vec_string(relative_file_path); |
| 309 | |
| 310 | hook_name.insert(0, "use".to_string()); |
| 311 | hook_name.push(fn_name.to_pascal_case()); |
| 312 | hook_name.join("") |
| 313 | } |
| 314 | |
| 315 | #[allow(clippy::too_many_lines)] |
| 316 | fn process_service_file( |
no test coverage detected