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

Function test_process_from_bypass

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected