MCPcopy Create free account
hub / github.com/bobg/hashsplit / buildTree

Function buildTree

hashsplit_test.go:168–173  ·  view source on GitHub ↗
(text []byte)

Source from the content-addressed store, hash-verified

166}
167
168func buildTree(text []byte) (*TreeNode, error) {
169 split, errptr := Split(bytes.NewReader(text))
170 tree := Tree(split)
171 root := Root(tree)
172 return root, *errptr
173}
174
175// Compares two trees, disregarding the contents of the leaves.
176func compareTrees(a, b *TreeNode) bool {

Callers 3

TestTreeFunction · 0.85
TestSeekFunction · 0.85
BenchmarkTreeFunction · 0.85

Calls 3

SplitFunction · 0.85
TreeFunction · 0.85
RootFunction · 0.85

Tested by

no test coverage detected