()
| 427 | |
| 428 | #[test] |
| 429 | fn test_local_byte_json_roundtrip() { |
| 430 | let local = LocalByte::new("data.bin", 10, 2048); |
| 431 | let json = serde_json::to_string(&local).unwrap(); |
| 432 | let parsed: LocalByte = serde_json::from_str(&json).unwrap(); |
| 433 | assert_eq!(local, parsed); |
| 434 | } |
| 435 | |
| 436 | #[test] |
| 437 | fn test_local_byte_json_with_inode() { |