()
| 697 | |
| 698 | #[test] |
| 699 | fn test_json_patch_remove() { |
| 700 | let original = json!({ |
| 701 | "name": "test", |
| 702 | "value": 42 |
| 703 | }); |
| 704 | |
| 705 | let patch = json!([ |
| 706 | {"op": "remove", "path": "/value"} |
| 707 | ]); |
| 708 | |
| 709 | let result = apply_json_patch(&original, &patch).unwrap(); |
| 710 | assert!(result.get("value").is_none()); |
| 711 | } |
| 712 | |
| 713 | #[test] |
| 714 | fn test_json_patch_replace() { |
nothing calls this directly
no test coverage detected