()
| 94 | |
| 95 | #[test] |
| 96 | fn test_process_with_parent() { |
| 97 | let proc = Process::new("python3", 42).with_parent(Process::new("bash", 1)); |
| 98 | let parent = proc.parent_process.as_ref().unwrap(); |
| 99 | assert_eq!(parent.name, "bash"); |
| 100 | assert_eq!(parent.pid, 1); |
| 101 | } |
| 102 | |
| 103 | #[test] |
| 104 | fn test_process_from_bypass() { |
nothing calls this directly
no test coverage detected