MCPcopy Index your code
hub / github.com/github/github-mcp-server / newMatchTracker

Function newMatchTracker

pkg/tooldiscovery/search.go:269–274  ·  view source on GitHub ↗
(capacity int)

Source from the content-addressed store, hash-verified

267}
268
269func newMatchTracker(capacity int) *matchTracker {
270 return &matchTracker{
271 list: make([]string, 0, capacity),
272 seen: make(map[string]struct{}, capacity),
273 }
274}
275
276func (m *matchTracker) Add(part string) {
277 if _, ok := m.seen[part]; ok {

Callers 1

scoreToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected