Files
aptly/s3
Martin Simon ed180e8e16 Cover ReadLink's non-link and error paths
codecov/patch flagged the change at 75% of diff hit. The uncovered lines
were the two the existing test could not reach: the fallthrough when no
metadata key matches, and the HeadObject error return.

Both are worth pinning regardless of the coverage gate.
packageIndexByHash calls ReadLink on a path it has only just confirmed
exists and treats an error as "leave it alone", so "this is not a link"
and "I could not find out" have to stay distinguishable: the first is an
empty string with a nil error, the second is an error.

ReadLink goes to 100%.
2026-08-31 13:21:22 +02:00
..
2015-02-22 14:29:09 +03:00
2014-07-17 18:09:13 +04:00