The bucket should have already been filtered to just module files.
( ctx context.Context, bucketWithStorageMatcherApplied storage.ReadBucket, )
| 371 | |
| 372 | // The bucket should have already been filtered to just module files. |
| 373 | func getFilesDigestForB5Digest( |
| 374 | ctx context.Context, |
| 375 | bucketWithStorageMatcherApplied storage.ReadBucket, |
| 376 | ) (cas.Digest, error) { |
| 377 | return cas.BucketToDigest( |
| 378 | ctx, |
| 379 | // This is extreme defensive programming. We've gone out of our way to make sure |
| 380 | // that the bucket is already filtered, but it's just too important to mess up here. |
| 381 | storage.FilterReadBucket(bucketWithStorageMatcherApplied, getStorageMatcher(ctx, bucketWithStorageMatcherApplied)), |
| 382 | cas.DigestTypeShake256, |
| 383 | ) |
| 384 | } |
no test coverage detected
searching dependent graphs…