(path: &Path)
| 404 | } |
| 405 | |
| 406 | fn hooks_file_has_atomic_hooks(path: &Path) -> bool { |
| 407 | std::fs::read_to_string(path) |
| 408 | .map(|content| content.contains(ATOMIC_HOOK_PREFIX)) |
| 409 | .unwrap_or(false) |
| 410 | } |
| 411 | |
| 412 | fn add_hook( |
| 413 | hooks: &mut Map<String, Value>, |
no test coverage detected