• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_describe / 44ea49d2-99da-4559-b96a-7fc3f97c69ea

pending completion
44ea49d2-99da-4559-b96a-7fc3f97c69ea

Pull #1028

circleci

jrgriffiniii
wip
Pull Request #1028: Implementing the UploadSnapshotsController

58 of 58 new or added lines in 5 files covered. (100.0%)

1882 of 1940 relevant lines covered (97.01%)

173.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/app/models/upload_snapshot.rb
1
# frozen_string_literal: true
2
class UploadSnapshot < ApplicationRecord
1✔
3
  belongs_to :work
1✔
4
  attr_writer :upload
1✔
5

6
  def upload
1✔
7
    @upload ||= uploads.find { |s3_file| key.include?(s3_file.key) }
×
8
  end
9

10
  def uri
1✔
11
    URI.parse(url)
1✔
12
  end
13

14
  private
1✔
15

16
    def uploads
1✔
17
      work.uploads
×
18
    end
19
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc