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

Method ShouldEnable

internal/bisect/bisect.go:349–354  ·  view source on GitHub ↗

ShouldEnable reports whether the change with the given id should be enabled.

(id uint64)

Source from the content-addressed store, hash-verified

347
348// ShouldEnable reports whether the change with the given id should be enabled.
349func (m *Matcher) ShouldEnable(id uint64) bool {
350 if m == nil {
351 return true
352 }
353 return m.matchResult(id) == m.enable
354}
355
356// ShouldPrint reports whether to print identifying information about the change with the given id.
357func (m *Matcher) ShouldPrint(id uint64) bool {

Callers 2

fileLineMethod · 0.95
stackMethod · 0.95

Calls 1

matchResultMethod · 0.95

Tested by

no test coverage detected