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

Method ToMap

src/merger.go:142–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (mg *Merger) ToMap() map[int32]Result {
143 ret := make(map[int32]Result, mg.count)
144 for i := 0; i < mg.count; i++ {
145 result := mg.Get(i)
146 ret[result.Index()] = result
147 }
148 return ret
149}
150
151func (mg *Merger) cacheable() bool {
152 return mg.count < mergerCacheMax

Callers 2

UpdateListMethod · 0.80
LoopMethod · 0.80

Calls 2

GetMethod · 0.95
IndexMethod · 0.45

Tested by

no test coverage detected