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.
| 21 | // remote source again. |
| 22 | |
| 23 | type fakePkgCacheConfig struct { |
| 24 | dir string |
| 25 | writable bool |
| 26 | } |
| 27 | |
| 28 | func (f fakePkgCacheConfig) GetDir(dirType context.PkgCacheDirType) string { |
| 29 | switch dirType { |
nothing calls this directly
no outgoing calls
no test coverage detected