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

Method FirstLinePtr

pkg/util/logview/logview.go:65–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (lv *LogView) FirstLinePtr() (*LinePtr, error) {
66 linePtr := &LinePtr{Offset: 0, RealLineNum: 1, LineNum: 1}
67 if lv.isLineMatch(0) {
68 return linePtr, nil
69 }
70 return lv.NextLinePtr(linePtr)
71}
72
73func (lv *LogView) isLineMatch(offset int64) bool {
74 if lv.MatchRe == nil {

Callers 1

LastLinePtrMethod · 0.95

Calls 2

isLineMatchMethod · 0.95
NextLinePtrMethod · 0.95

Tested by

no test coverage detected