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

Function printFileLine

internal/bisect/bisect.go:399–407  ·  view source on GitHub ↗

printFileLine prints a non-marker-only report for file:line to w.

(w Writer, h uint64, file string, line int)

Source from the content-addressed store, hash-verified

397
398// printFileLine prints a non-marker-only report for file:line to w.
399func printFileLine(w Writer, h uint64, file string, line int) error {
400 const markerLen = 40 // overestimate
401 b := make([]byte, 0, markerLen+len(file)+24)
402 b = AppendMarker(b, h)
403 b = appendFileLine(b, file, line)
404 b = append(b, '\n')
405 _, err := w.Write(b)
406 return err
407}
408
409// appendFileLine appends file:line to dst, returning the extended slice.
410func appendFileLine(dst []byte, file string, line int) []byte {

Callers 1

fileLineMethod · 0.85

Calls 3

AppendMarkerFunction · 0.85
appendFileLineFunction · 0.85
WriteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…