MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_diff_result_index

Function test_diff_result_index

atomic-core/src/diff/ops.rs:762–769  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

760
761 #[test]
762 fn test_diff_result_index() {
763 let mut result = DiffResult::new();
764 result.push(DiffOp::equal(0, 0, 1));
765 result.push(DiffOp::insert(1, 1, 1));
766
767 assert!(result[0].is_equal());
768 assert!(result[1].is_insert());
769 }
770
771 #[test]
772 fn test_adjust_offsets() {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected