MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / text_replacement_falls_back_to_modified

Function text_replacement_falls_back_to_modified

nodedb/src/event/field_diff.rs:501–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

499
500 #[test]
501 fn text_replacement_falls_back_to_modified() {
502 let old = json!({"content": "Hello World"});
503 let new = json!({"content": "Hello Earth"});
504 let diffs = compute_field_diffs(&old, &new);
505 assert_eq!(diffs.len(), 1);
506 assert_eq!(diffs[0].op, DiffOp::Modified);
507 }
508
509 #[test]
510 fn text_insert_at_beginning() {

Callers

nothing calls this directly

Calls 1

compute_field_diffsFunction · 0.85

Tested by

no test coverage detected