()
| 82 | |
| 83 | #[test] |
| 84 | fn test_optional_fields_omitted() { |
| 85 | let event = test_event(); |
| 86 | let json = event.to_json().unwrap(); |
| 87 | |
| 88 | // Optional fields should not appear when None |
| 89 | assert!(json.get("device").is_none()); |
| 90 | assert!(json.get("container").is_none()); |
| 91 | assert!(json.get("unmapped").is_none()); |
| 92 | assert!(json.get("status_detail").is_none()); |
| 93 | } |
| 94 | } |
nothing calls this directly
no test coverage detected