MCPcopy Create free account
hub / github.com/celer-pkg/celer / GetRepoCache

Method GetRepoCache

configs/pkgcache_repo_test.go:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42func (f fakePkgCacheConfig) GetCacheDownloads() bool { return true }
43func (f fakePkgCacheConfig) GetArtifactCache() context.AritifactCache { return nil }
44func (f fakePkgCacheConfig) GetRepoCache() context.RepoCache {
45 return pkgcache.NewRepoConfig(fakeContext{pkgCacheConfig: f}, f.writable)
46}
47
48// creates a local bare repo that acts like remote origin.
49// Using a local origin keeps this test deterministic and network-independent.

Callers

nothing calls this directly

Calls 1

NewRepoConfigFunction · 0.92

Tested by

no test coverage detected