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

Method ShouldPrint

internal/bisect/bisect.go:357–362  ·  view source on GitHub ↗

ShouldPrint reports whether to print identifying information about the change with the given id.

(id uint64)

Source from the content-addressed store, hash-verified

355
356// ShouldPrint reports whether to print identifying information about the change with the given id.
357func (m *Matcher) ShouldPrint(id uint64) bool {
358 if m == nil || m.quiet {
359 return false
360 }
361 return m.matchResult(id)
362}
363
364// matchResult returns the result from the first condition that matches id.
365func (m *Matcher) matchResult(id uint64) bool {

Callers 2

fileLineMethod · 0.95
stackMethod · 0.95

Calls 1

matchResultMethod · 0.95

Tested by

no test coverage detected