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

Function test_process_serialization

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

Source from the content-addressed store, hash-verified

121
122 #[test]
123 fn test_process_serialization() {
124 let proc = Process::new("python3", 42);
125 let json = serde_json::to_value(&proc).unwrap();
126 assert_eq!(json["name"], "python3");
127 assert_eq!(json["pid"], 42);
128 assert!(json.get("cmd_line").is_none());
129 assert!(json.get("parent_process").is_none());
130 }
131
132 #[test]
133 fn test_actor_serialization() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected