Skip to content

Undercoverage in app/controllers/repositories/lfs_api_controller.rb:86:99

The following discussion from !133366 (merged) should be addressed:

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