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

Struct fakePkgCacheConfig

configs/pkgcache_repo_test.go:23–26  ·  view source on GitHub ↗

This file verifies repo-source caching from the caller's perspective: BuildConfig.Clone should store a source tree into pkgcache when online, and later restore that exact source tree from pkgcache before touching the remote source again.

Source from the content-addressed store, hash-verified

21// remote source again.
22
23type fakePkgCacheConfig struct {
24 dir string
25 writable bool
26}
27
28func (f fakePkgCacheConfig) GetDir(dirType context.PkgCacheDirType) string {
29 switch dirType {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected