()
| 683 | |
| 684 | #[test] |
| 685 | fn test_json_patch_add() { |
| 686 | let original = json!({ |
| 687 | "name": "test" |
| 688 | }); |
| 689 | |
| 690 | let patch = json!([ |
| 691 | {"op": "add", "path": "/value", "value": 42} |
| 692 | ]); |
| 693 | |
| 694 | let result = apply_json_patch(&original, &patch).unwrap(); |
| 695 | assert_eq!(result["value"], 42); |
| 696 | } |
| 697 | |
| 698 | #[test] |
| 699 | fn test_json_patch_remove() { |
nothing calls this directly
no test coverage detected