Stats provides info about the diff internals
()
| 325 | |
| 326 | // Stats provides info about the diff internals |
| 327 | func (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. |
| 338 | func (diff *TreeDiff) mergeNodes(left *TreeNode, right *TreeNode) { |
no test coverage detected