MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / isLineMatch

Method isLineMatch

pkg/util/logview/logview.go:73–82  ·  view source on GitHub ↗
(offset int64)

Source from the content-addressed store, hash-verified

71}
72
73func (lv *LogView) isLineMatch(offset int64) bool {
74 if lv.MatchRe == nil {
75 return true
76 }
77 lineData, err := lv.readLineAt(offset)
78 if err != nil {
79 return false
80 }
81 return lv.MatchRe.Match(lineData)
82}
83
84func (lv *LogView) NextLinePtr(linePtr *LinePtr) (*LinePtr, error) {
85 if linePtr == nil {

Callers 3

FirstLinePtrMethod · 0.95
NextLinePtrMethod · 0.95
PrevLinePtrMethod · 0.95

Calls 1

readLineAtMethod · 0.95

Tested by

no test coverage detected