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

Method FileLine

internal/bisect/bisect.go:377–382  ·  view source on GitHub ↗

FileLine reports whether the change identified by file and line should be enabled. If the change should be printed, FileLine prints a one-line report to w.

(w Writer, file string, line int)

Source from the content-addressed store, hash-verified

375// FileLine reports whether the change identified by file and line should be enabled.
376// If the change should be printed, FileLine prints a one-line report to w.
377func (m *Matcher) FileLine(w Writer, file string, line int) bool {
378 if m == nil {
379 return true
380 }
381 return m.fileLine(w, file, line)
382}
383
384// fileLine does the real work for FileLine.
385// This lets FileLine's body handle m == nil and potentially be inlined.

Callers

nothing calls this directly

Calls 1

fileLineMethod · 0.95

Tested by

no test coverage detected