MCPcopy
hub / github.com/junegunn/fzf / Length

Method Length

src/merger.go:84–86  ·  view source on GitHub ↗

Length returns the number of items

()

Source from the content-addressed store, hash-verified

82
83// Length returns the number of items
84func (mg *Merger) Length() int {
85 return mg.count
86}
87
88func (mg *Merger) First() Result {
89 if mg.tac && !mg.sorted {

Callers 15

TestMergerUnsortedFunction · 0.95
TestMergerSortedFunction · 0.95
withPrefixLengthsFunction · 0.45
buildResultFromBoundsFunction · 0.45
TestEmptyMergerFunction · 0.45
RunFunction · 0.45
environImplMethod · 0.45
itemLinesMethod · 0.45
avgNumLinesMethod · 0.45
getScrollbarMethod · 0.45
UpdateListMethod · 0.45
printInfoImplMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestMergerUnsortedFunction · 0.76
TestMergerSortedFunction · 0.76
TestEmptyMergerFunction · 0.36