()
| 25 | |
| 26 | #[test] |
| 27 | fn test_rc_weak_null_serialization() { |
| 28 | let fory = Fory::builder() |
| 29 | .xlang(false) |
| 30 | .track_ref(true) |
| 31 | .compatible(false) |
| 32 | .build(); |
| 33 | |
| 34 | let weak: RcWeak<i32> = RcWeak::new(); |
| 35 | |
| 36 | let serialized = fory.serialize(&weak).unwrap(); |
| 37 | let deserialized: RcWeak<i32> = fory.deserialize(&serialized).unwrap(); |
| 38 | |
| 39 | assert!(deserialized.upgrade().is_none()); |
| 40 | } |
| 41 | |
| 42 | #[test] |
| 43 | fn test_arc_weak_null_serialization() { |
nothing calls this directly
no test coverage detected