MCPcopy
hub / github.com/jesseduffield/lazygit / Lines

Method Lines

pkg/integration/components/view_driver.go:65–70  ·  view source on GitHub ↗

asserts that the view has lines matching the given matchers. One matcher must be passed for each line. If you only care about the top n lines, use the TopLines method instead. If you only care about a subset of lines, use the ContainsLines method instead.

(matchers ...*TextMatcher)

Source from the content-addressed store, hash-verified

63// If you only care about the top n lines, use the TopLines method instead.
64// If you only care about a subset of lines, use the ContainsLines method instead.
65func (self *ViewDriver) Lines(matchers ...*TextMatcher) *ViewDriver {
66 self.validateMatchersPassed(matchers)
67 self.LineCount(EqualsInt(len(matchers)))
68
69 return self.assertLines(0, matchers...)
70}
71
72// asserts that the view has lines matching the given matchers. So if three matchers
73// are passed, we only check the first three lines of the view.

Calls 4

LineCountMethod · 0.95
assertLinesMethod · 0.95
EqualsIntFunction · 0.85

Tested by

no test coverage detected