• 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

76.92
/app/models/delivery_location.rb
1
# frozen_string_literal: true
2

3
class DeliveryLocation < ActiveRecord::Base
1✔
4
  include Labeled
1✔
5
  include WithLibrary
1✔
6

7
  # TODO: Remove after migrating to non-prefixed tables
8
  self.table_name_prefix = 'locations_'
1✔
9

10
  has_and_belongs_to_many :holding_locations, -> { distinct },
1✔
11
                          class_name: 'HoldingLocation',
12
                          join_table: 'locations_holdings_delivery',
13
                          foreign_key: 'locations_holding_location_id',
14
                          association_foreign_key: 'locations_delivery_location_id'
15

16
  validates :address, :phone_number, :contact_email, :gfa_pickup, presence: true
1✔
17
  validates :staff_only, :pickup_location, :digital_location, inclusion: { in: [true, false] }
1✔
18
  after_initialize :set_defaults
1✔
19

20
  private
1✔
21

22
    def set_defaults
1✔
UNCOV
23
      self.staff_only = false if staff_only.blank?
×
UNCOV
24
      self.pickup_location = false if pickup_location.blank?
×
UNCOV
25
      self.digital_location = false if digital_location.blank?
×
26
    end
27
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