()
| 102 | |
| 103 | #[test] |
| 104 | fn test_process_from_bypass() { |
| 105 | let proc = Process::from_bypass("node", "1234", "bash -> node"); |
| 106 | assert_eq!(proc.name, "node"); |
| 107 | assert_eq!(proc.pid, 1234); |
| 108 | let parent = proc.parent_process.as_ref().unwrap(); |
| 109 | assert_eq!(parent.name, "bash"); |
| 110 | } |
| 111 | |
| 112 | #[test] |
| 113 | fn test_process_from_bypass_deep_chain() { |
nothing calls this directly
no outgoing calls
no test coverage detected