MCPcopy Index your code
hub / github.com/bracesdev/errtrace / writeTree

Method writeTree

tree.go:104–110  ·  view source on GitHub ↗

writeTree writes the tree to the writer. path is a slice of indexes leading to the current node in the tree.

(t traceTree, path []int)

Source from the content-addressed store, hash-verified

102// path is a slice of indexes leading to the current node
103// in the tree.
104func (p *treeWriter) writeTree(t traceTree, path []int) {
105 for i, child := range t.Children {
106 p.writeTree(child, append(path, i))
107 }
108
109 p.writeTrace(t.Err, t.Trace, path)
110}
111
112func (p *treeWriter) writeTrace(err error, trace []runtime.Frame, path []int) {
113 // A trace for a single error takes

Callers 1

WriteTreeMethod · 0.95

Calls 1

writeTraceMethod · 0.95

Tested by

no test coverage detected