()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected