Copy operation - copies a value from one path to another
(value: &Value, from: &str, to: &str)
| 294 | |
| 295 | /// Copy operation - copies a value from one path to another |
| 296 | fn copy_operation(value: &Value, from: &str, to: &str) -> Result<Value, PatchError> { |
| 297 | let copied_value = get_value(value, from)?; |
| 298 | add_operation(value, to, &copied_value) |
| 299 | } |
| 300 | |
| 301 | /// Test operation - tests that a value at the specified path equals the given value |
| 302 | fn test_operation(value: &Value, path: &str, test_value: &Value) -> Result<(), PatchError> { |
no test coverage detected