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

pulibrary / bibdata / 1dcebae2-3318-4e77-bc53-82276e293354

02 May 2025 04:45PM UTC coverage: 28.256% (-63.9%) from 92.189%
1dcebae2-3318-4e77-bc53-82276e293354

push

circleci

sandbergja
Add basic infrastructure for compiling rust code

* Add a rake compile task to compile
* Run the rake task in CI
* Run the rake task before rspec tests with the rust tag, to provide quick feedback on rust changes in TDD cycles

2 of 7 new or added lines in 2 files covered. (28.57%)

2467 existing lines in 97 files now uncovered.

1089 of 3854 relevant lines covered (28.26%)

0.29 hits per line

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

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

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

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