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