(outputName string)
| 31 | const useDefaultOutputs = "__default_outputs__" |
| 32 | |
| 33 | func (p *Package) IsOutputInBinaryCache(outputName string) (bool, error) { |
| 34 | if eligible, err := p.isEligibleForBinaryCache(); err != nil { |
| 35 | return false, err |
| 36 | } else if !eligible { |
| 37 | return false, nil |
| 38 | } |
| 39 | |
| 40 | return p.areExpectedOutputsInCacheOnce(outputName) |
| 41 | } |
| 42 | |
| 43 | // IsInBinaryCache returns true if the package is in the binary cache. |
| 44 | // ALERT: Callers in a perf-sensitive code path should call FillNarInfoCache |
no test coverage detected