mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-12 14:31:02 +00:00
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%.