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

Function createTestRepoCacheNoEvents

cache/repo_cache_test.go:367–378  ·  view source on GitHub ↗
(t *testing.T, repo repository.TestedRepo)

Source from the content-addressed store, hash-verified

365}
366
367func createTestRepoCacheNoEvents(t *testing.T, repo repository.TestedRepo) *RepoCache {
368 t.Helper()
369
370 cache, err := NewRepoCacheNoEvents(repo)
371 require.NoError(t, err)
372
373 t.Cleanup(func() {
374 require.NoError(t, cache.Close())
375 })
376
377 return cache
378}

Callers 4

TestCachePushPullFunction · 0.85
TestRemoveFunction · 0.85
TestCacheEvictionFunction · 0.85
TestLongDescriptionFunction · 0.85

Calls 3

NewRepoCacheNoEventsFunction · 0.85
HelperMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected