MCPcopy Create free account
hub / github.com/dotchain/dot / Merge

Method Merge

refs/caret.go:37–43  ·  view source on GitHub ↗

Merge updates the caret index based on the change. Note that it always returns a nil change as there is no way for a change to affect the caret.

(c changes.Change)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

TestCaretNilFunction · 0.95
TestCaretReplaceFunction · 0.95
TestCaretSpliceFunction · 0.95
TestCaretSpliceAtIndexFunction · 0.95
TestCaretMoveRightFunction · 0.95
TestCaretMoveLeftFunction · 0.95
TestCaretMoveAtIndexFunction · 0.95
TestCaretChangeSetFunction · 0.95
TestCaretPathChangeFunction · 0.95
TestCaretInvalidRefFunction · 0.95
TestCaretUnknownChangeFunction · 0.95
TestCaretMergerFunction · 0.95

Calls 2

updateIndexMethod · 0.95
MergeMethod · 0.65

Tested by 12

TestCaretNilFunction · 0.76
TestCaretReplaceFunction · 0.76
TestCaretSpliceFunction · 0.76
TestCaretSpliceAtIndexFunction · 0.76
TestCaretMoveRightFunction · 0.76
TestCaretMoveLeftFunction · 0.76
TestCaretMoveAtIndexFunction · 0.76
TestCaretChangeSetFunction · 0.76
TestCaretPathChangeFunction · 0.76
TestCaretInvalidRefFunction · 0.76
TestCaretUnknownChangeFunction · 0.76
TestCaretMergerFunction · 0.76