MCPcopy Index your code
hub / github.com/pterm/pterm / TestTreePrinter_WithRoot

Function TestTreePrinter_WithRoot

tree_printer_test.go:129–141  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

127}
128
129func TestTreePrinter_WithRoot(t *testing.T) {
130 p := pterm.TreePrinter{}
131 p2 := p.WithRoot(pterm.TreeNode{
132 Children: nil,
133 Text: "Hello, World!",
134 })
135
136 testza.AssertEqual(t, pterm.TreeNode{
137 Children: nil,
138 Text: "Hello, World!",
139 }, p2.Root)
140 testza.AssertZero(t, p.Root)
141}
142
143func TestTreePrinter_WithTreeStyle(t *testing.T) {
144 p := pterm.TreePrinter{}

Callers

nothing calls this directly

Calls 1

WithRootMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…