()
| 712 | |
| 713 | #[test] |
| 714 | fn test_json_patch_replace() { |
| 715 | let original = json!({ |
| 716 | "name": "test", |
| 717 | "value": 42 |
| 718 | }); |
| 719 | |
| 720 | let patch = json!([ |
| 721 | {"op": "replace", "path": "/value", "value": 100} |
| 722 | ]); |
| 723 | |
| 724 | let result = apply_json_patch(&original, &patch).unwrap(); |
| 725 | assert_eq!(result["value"], 100); |
| 726 | } |
| 727 | |
| 728 | #[test] |
| 729 | fn test_strategic_merge_patch_simple() { |
nothing calls this directly
no test coverage detected