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

Function test_process_creation

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

Source from the content-addressed store, hash-verified

86
87 #[test]
88 fn test_process_creation() {
89 let proc = Process::new("python3", 42).with_cmd_line("python3 /app/main.py");
90 assert_eq!(proc.name, "python3");
91 assert_eq!(proc.pid, 42);
92 assert_eq!(proc.cmd_line.as_deref(), Some("python3 /app/main.py"));
93 }
94
95 #[test]
96 fn test_process_with_parent() {

Callers

nothing calls this directly

Calls 1

with_cmd_lineMethod · 0.80

Tested by

no test coverage detected