MCPcopy Index your code
hub / github.com/git-bug/git-bug / ResolveMatcher

Method ResolveMatcher

cache/subcache.go:387–393  ·  view source on GitHub ↗
(f func(ExcerptT) bool)

Source from the content-addressed store, hash-verified

385}
386
387func (sc *SubCache[EntityT, ExcerptT, CacheT]) ResolveMatcher(f func(ExcerptT) bool) (CacheT, error) {
388 id, err := sc.resolveMatcher(f)
389 if err != nil {
390 return *new(CacheT), err
391 }
392 return sc.Resolve(id)
393}
394
395// ResolveExcerpt retrieve an Excerpt matching the exact given id
396func (sc *SubCache[EntityT, ExcerptT, CacheT]) ResolveExcerpt(id entity.Id) (ExcerptT, error) {

Callers 7

ResolvePrefixMethod · 0.95
ensureIssueMethod · 0.80
ImportAllMethod · 0.80
ensureIssueMethod · 0.80
ensureIssueMethod · 0.80

Calls 2

resolveMatcherMethod · 0.95
ResolveMethod · 0.95

Tested by

no test coverage detected