MCPcopy Create free account
hub / github.com/git-bug/git-bug / AllIds

Method AllIds

cache/subcache.go:336–349  ·  view source on GitHub ↗

AllIds return all known bug ids

()

Source from the content-addressed store, hash-verified

334
335// AllIds return all known bug ids
336func (sc *SubCache[EntityT, ExcerptT, CacheT]) AllIds() []entity.Id {
337 sc.mu.RLock()
338 defer sc.mu.RUnlock()
339
340 result := make([]entity.Id, len(sc.excerpts))
341
342 i := 0
343 for _, excerpt := range sc.excerpts {
344 result[i] = excerpt.Id()
345 i++
346 }
347
348 return result
349}
350
351// Resolve retrieve an entity matching the exact given id
352func (sc *SubCache[EntityT, ExcerptT, CacheT]) Resolve(id entity.Id) (CacheT, error) {

Callers 15

QueryMethod · 0.80
TestCacheFunction · 0.80
TestCachePushPullFunction · 0.80
TestGithubImporterFunction · 0.80
ExportAllMethod · 0.80
TestGithubPushPullFunction · 0.80
TestGitlabImportFunction · 0.80
ExportAllMethod · 0.80
TestGitlabPushPullFunction · 0.80
ExportAllMethod · 0.80
LsFunction · 0.80

Calls 1

IdMethod · 0.65

Tested by 7

TestCacheFunction · 0.64
TestCachePushPullFunction · 0.64
TestGithubImporterFunction · 0.64
TestGithubPushPullFunction · 0.64
TestGitlabImportFunction · 0.64
TestGitlabPushPullFunction · 0.64