• 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/user.rb
1
class User < ActiveRecord::Base
1✔
2
  devise :database_authenticatable,
1✔
3
         :rememberable, :trackable, :validatable,
4
         :omniauthable
5

6
  def self.from_cas(access_token)
1✔
UNCOV
7
    User.where(provider: access_token.provider, uid: access_token.uid).first_or_create do |user|
×
UNCOV
8
      user.uid = access_token.uid
×
UNCOV
9
      user.username = access_token.uid
×
UNCOV
10
      user.email = "#{access_token.uid}@princeton.edu"
×
UNCOV
11
      user.password = SecureRandom.urlsafe_base64
×
UNCOV
12
      user.provider = access_token.provider
×
13
    end
14
  end
15

16
  # Determines whether or not a given user is a catalog administrator
17
  # @return [TrueClass, FalseClass]
18
  def catalog_admin?
1✔
UNCOV
19
    netids = Rails.application.config.authz
×
UNCOV
20
    netids.include? uid
×
21
  end
22
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