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

Function test_compare_result_clone

atomic-core/src/record/workflow/compare.rs:732–745  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730
731 #[test]
732 fn test_compare_result_clone() {
733 let result = CompareResult::with_diff(
734 Encoding::Utf8,
735 Encoding::Utf8,
736 vec![DiffOp::Insert {
737 old_pos: 0,
738 new_pos: 0,
739 len: 1,
740 }],
741 );
742 let cloned = result.clone();
743
744 assert_eq!(result, cloned);
745 }
746
747 #[test]
748 fn test_compare_result_debug() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected