()
| 913 | |
| 914 | #[test] |
| 915 | fn test_stats_serde_roundtrip() { |
| 916 | let mut stats = ApplyStats::new(); |
| 917 | stats.add_trunk_created(); |
| 918 | stats.add_branch_inserted(); |
| 919 | stats.add_leaf_inserted(); |
| 920 | stats.add_content_bytes(42); |
| 921 | |
| 922 | let json = serde_json::to_string(&stats).unwrap(); |
| 923 | let restored: ApplyStats = serde_json::from_str(&json).unwrap(); |
| 924 | |
| 925 | assert_eq!(stats, restored); |
| 926 | } |
| 927 | |
| 928 | // ApplyContext Tests |
| 929 |
nothing calls this directly
no test coverage detected