Undercoverage in app/controllers/repositories/lfs_api_controller.rb:86:99
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=429160) </details> <!--IssueSummary end--> The following discussion from !133366 should be addressed: - [ ] @tkuah started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/133366#note_1615840706): > https://gitlab.com/gitlab-org/gitlab/-/jobs/5357531628 is a genuine undercover failure but let's follow this up. Setting ~"pipeline:skip-undercoverage" on this MR. ``` undercover: 👮‍♂️ some methods have no test coverage! Please add specs for methods listed below 🚨 1) node `block (object)` type: block, loc: app/controllers/repositories/lfs_api_controller.rb:86:99, coverage: 0.0% 86: objects.each do |object| hits: n/a 87: if existing_oids.include?(object[:oid]) hits: 0 88: object[:actions] = proxy_download_actions(object) hits: 0 89: 90: if ::Users::Anonymous.can?(:download_code, project) hits: 0 91: object[:authenticated] = true hits: 0 92: end hits: n/a 93: else hits: n/a 94: object[:error] = { hits: 0 95: code: 404, hits: n/a 96: message: _("Object does not exist on the server or you don't have permissions to access it") hits: n/a 97: } hits: n/a 98: end hits: n/a 99: end hits: n/a ```
issue