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

Function test_actor_serialization

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

Source from the content-addressed store, hash-verified

131
132 #[test]
133 fn test_actor_serialization() {
134 let actor = Actor {
135 process: Process::new("python3", 42),
136 };
137 let json = serde_json::to_value(&actor).unwrap();
138 assert_eq!(json["process"]["name"], "python3");
139 }
140}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected