MCPcopy Create free account
hub / github.com/imroc/req / PrintMarker

Function PrintMarker

internal/bisect/bisect.go:495–501  ·  view source on GitHub ↗

PrintMarker prints to w a one-line report containing only the marker for h. It is appropriate to use when [Matcher.ShouldPrint] and [Matcher.MarkerOnly] both return true.

(w Writer, h uint64)

Source from the content-addressed store, hash-verified

493// PrintMarker prints to w a one-line report containing only the marker for h.
494// It is appropriate to use when [Matcher.ShouldPrint] and [Matcher.MarkerOnly] both return true.
495func PrintMarker(w Writer, h uint64) error {
496 var buf [50]byte
497 b := AppendMarker(buf[:0], h)
498 b = append(b, '\n')
499 _, err := w.Write(b)
500 return err
501}
502
503// printStack prints to w a multi-line report containing a formatting of the call stack stk,
504// with each line preceded by the marker for h.

Callers 2

fileLineMethod · 0.85
stackMethod · 0.85

Calls 2

AppendMarkerFunction · 0.85
WriteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…