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

pulibrary / bibdata / b3c4a532-5da0-46f8-9c20-20018605a028

21 Mar 2025 08:11PM UTC coverage: 42.257% (-49.9%) from 92.185%
b3c4a532-5da0-46f8-9c20-20018605a028

push

circleci

sandbergja
Move various gems from the default Gemfile group to a more appropriate group

1599 of 3784 relevant lines covered (42.26%)

2.56 hits per line

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

66.67
/app/models/scsb_lookup.rb
1
class ScsbLookup
1✔
2
  include Scsb
1✔
3

4
  def find_by_id(id)
1✔
5
    response = items_by_id(id)
3✔
6
    response.index_by { |r| r['itemBarcode'] }
5✔
7
  rescue Faraday::ConnectionFailed
8
    Rails.logger.warn("No barcodes could be retrieved for the item: #{id}")
×
9
    {}
×
10
  end
11

12
  def find_by_barcodes(barcodes)
1✔
13
    response = items_by_barcode(barcodes)
3✔
14
    response.index_by { |r| r['itemBarcode'] }
7✔
15
  rescue Faraday::ConnectionFailed
16
    Rails.logger.warn("No items could be retrieved for the barcodes: #{barcodes.join(',')}")
×
17
    {}
×
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