()
| 650 | |
| 651 | #[test] |
| 652 | fn test_new_vertex_json_roundtrip() { |
| 653 | let nv = Insertion { |
| 654 | predecessors: vec![test_hash_position(0)], |
| 655 | successors: vec![], |
| 656 | flag: EdgeFlags::BLOCK, |
| 657 | start: ChangePosition::new(0), |
| 658 | end: ChangePosition::new(10), |
| 659 | inode: test_hash_position(0), |
| 660 | }; |
| 661 | |
| 662 | let json = serde_json::to_string(&nv).unwrap(); |
| 663 | let parsed: Insertion<Hash> = serde_json::from_str(&json).unwrap(); |
| 664 | assert_eq!(nv, parsed); |
| 665 | } |
| 666 | |
| 667 | #[test] |
| 668 | fn test_new_vertex_postcard_roundtrip() { |
nothing calls this directly
no test coverage detected