MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_process_with_parent

Function test_process_with_parent

crates/openshell-ocsf/src/objects/process.rs:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

with_parentMethod · 0.80

Tested by

no test coverage detected