MCPcopy Index your code
hub / github.com/harness/harness / NumLines

Method NumLines

git/diff/diff.go:76–78  ·  view source on GitHub ↗

NumLines returns the number of lines in the section.

()

Source from the content-addressed store, hash-verified

74
75// NumLines returns the number of lines in the section.
76func (s *Section) NumLines() int {
77 return len(s.Lines)
78}
79
80// Line returns a specific line by given type and line number in a section.
81// nolint: gocognit

Callers 1

ParseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected