()
| 824 | |
| 825 | #[test] |
| 826 | fn test_serde_roundtrip() { |
| 827 | let options = ApplyOptions::builder() |
| 828 | .validate_ordering(true) |
| 829 | .fail_on_conflict(true) |
| 830 | .max_operations(Some(42)) |
| 831 | .build(); |
| 832 | |
| 833 | let json = serde_json::to_string(&options).unwrap(); |
| 834 | let restored: ApplyOptions = serde_json::from_str(&json).unwrap(); |
| 835 | |
| 836 | assert_eq!(options, restored); |
| 837 | } |
| 838 | |
| 839 | #[test] |
| 840 | fn test_serde_strict() { |
nothing calls this directly
no test coverage detected