MCPcopy Create free account
hub / github.com/pydio/cells / Stats

Method Stats

common/sync/merger/tree-diff.go:327–335  ·  view source on GitHub ↗

Stats provides info about the diff internals

()

Source from the content-addressed store, hash-verified

325
326// Stats provides info about the diff internals
327func (diff *TreeDiff) Stats() map[string]interface{} {
328 return map[string]interface{}{
329 "EndpointLeft": diff.left.GetEndpointInfo().URI,
330 "EndpointRight": diff.right.GetEndpointInfo().URI,
331 "missingLeft": len(diff.missingLeft),
332 "missingRight": len(diff.missingRight),
333 "conflicts": len(diff.conflicts),
334 }
335}
336
337// mergeNodes will recursively detect differences between two hash trees.
338func (diff *TreeDiff) mergeNodes(left *TreeNode, right *TreeNode) {

Callers 1

ComputeMethod · 0.95

Calls 1

GetEndpointInfoMethod · 0.65

Tested by

no test coverage detected