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

Function formatLineRange

pkg/integration/components/view_driver.go:297–303  ·  view source on GitHub ↗
(from int, to int)

Source from the content-addressed store, hash-verified

295}
296
297func formatLineRange(from int, to int) string {
298 if from == to {
299 return "line " + fmt.Sprintf("%d", from)
300 }
301
302 return "lines " + fmt.Sprintf("%d-%d", from, to)
303}
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 {

Callers 1

assertLinesMethod · 0.85

Calls 1

SprintfMethod · 0.65

Tested by

no test coverage detected