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)
| 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. |
| 65 | func (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. |
no test coverage detected