MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / generate_hook_name

Function generate_hook_name

crates/qsync/src/processor.rs:305–313  ·  view source on GitHub ↗
(base_input_path: &Path, input_path: &Path, fn_name: &str)

Source from the content-addressed store, hash-verified

303}
304
305fn 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)]
316fn process_service_file(

Callers 1

process_service_fileFunction · 0.85

Calls 2

file_path_to_vec_stringFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected