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

Method Content

pkg/integration/components/view_driver.go:306–314  ·  view source on GitHub ↗

asserts on the content of the view i.e. the stuff within the view's frame.

(matcher *TextMatcher)

Source from the content-addressed store, hash-verified

304
305// asserts on the content of the view i.e. the stuff within the view's frame.
306func (self *ViewDriver) Content(matcher *TextMatcher) *ViewDriver {
307 self.t.matchString(matcher, fmt.Sprintf("%s: Unexpected content.", self.context),
308 func() string {
309 return self.getView().Buffer()
310 },
311 )
312
313 return self
314}
315
316// asserts on the selected line of the view. If you are selecting a range,
317// you should use the SelectedLines method instead.

Calls 3

matchStringMethod · 0.80
BufferMethod · 0.80
SprintfMethod · 0.65

Tested by

no test coverage detected