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

Method ResolveExcerptMatcher

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

Source from the content-addressed store, hash-verified

414}
415
416func (sc *SubCache[EntityT, ExcerptT, CacheT]) ResolveExcerptMatcher(f func(ExcerptT) bool) (ExcerptT, error) {
417 id, err := sc.resolveMatcher(f)
418 if err != nil {
419 return *new(ExcerptT), err
420 }
421 return sc.ResolveExcerpt(id)
422}
423
424func (sc *SubCache[EntityT, ExcerptT, CacheT]) resolveMatcher(f func(ExcerptT) bool) (entity.Id, error) {
425 sc.mu.RLock()

Callers 1

ResolveExcerptPrefixMethod · 0.95

Calls 2

resolveMatcherMethod · 0.95
ResolveExcerptMethod · 0.95

Tested by

no test coverage detected