MCPcopy Index your code
hub / github.com/coder/coder / Push

Method Push

agent/filefinder/query.go:286–291  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

284func (h resultHeap) Less(i, j int) bool { return h[i].Score < h[j].Score }
285func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
286func (h *resultHeap) Push(x interface{}) {
287 r, ok := x.(Result)
288 if ok {
289 *h = append(*h, r)
290 }
291}
292
293func (h *resultHeap) Pop() interface{} {
294 old := *h

Callers 1

mergeAndScoreFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected