MCPcopy Create free account
hub / github.com/codehamr/codehamr / countPrintlnLeaves

Function countPrintlnLeaves

internal/tui/resize_test.go:265–269  ·  view source on GitHub ↗
(cmd tea.Cmd)

Source from the content-addressed store, hash-verified

263var printlnMsgType = reflect.TypeOf(tea.Println("probe")())
264
265func countPrintlnLeaves(cmd tea.Cmd) int {
266 return countCmdLeaves(cmd, func(_ tea.Cmd, msg tea.Msg) bool {
267 return msg != nil && reflect.TypeOf(msg) == printlnMsgType
268 })
269}

Callers 2

cmdYieldsPrintlnFunction · 0.85

Calls 1

countCmdLeavesFunction · 0.85

Tested by

no test coverage detected