(mappings: &[ProcessMapping])
| 865 | } |
| 866 | |
| 867 | fn mapping_summary(mappings: &[ProcessMapping]) -> Vec<(pid_t, &str, u64)> { |
| 868 | mappings |
| 869 | .iter() |
| 870 | .map(|mapping| (mapping.pid, mapping.path.as_str(), mapping.timestamp)) |
| 871 | .collect() |
| 872 | } |
| 873 | |
| 874 | #[test] |
| 875 | fn fork_without_exec_inherits_only_mappings_before_fork() { |