(t *testing.T, cache *RepoCache, bug *BugCache, presence bool)
| 353 | } |
| 354 | |
| 355 | func checkBugPresence(t *testing.T, cache *RepoCache, bug *BugCache, presence bool) { |
| 356 | t.Helper() |
| 357 | |
| 358 | id := bug.Id() |
| 359 | require.Equal(t, presence, cache.bugs.lru.Contains(id)) |
| 360 | b, ok := cache.bugs.cached[id] |
| 361 | require.Equal(t, presence, ok) |
| 362 | if ok { |
| 363 | require.Equal(t, bug, b) |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | func createTestRepoCacheNoEvents(t *testing.T, repo repository.TestedRepo) *RepoCache { |
| 368 | t.Helper() |
no test coverage detected