• 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

25.0
/app/controllers/application_controller.rb
1
class ApplicationController < ActionController::Base
1✔
2
  # Prevent CSRF attacks by raising an exception.
3
  # For APIs, you may want to use :null_session instead.
4
  protect_from_forgery with: :exception
1✔
5
  include ApplicationHelper
1✔
6

7
  def after_sign_out_path_for(_resource_or_scope)
1✔
8
    request.referer
×
9
  end
10

11
  def handle_alma_exception(exception:, message:)
1✔
UNCOV
12
    if exception.is_a?(Alma::PerSecondThresholdError)
×
UNCOV
13
      Rails.logger.error "HTTP 429. #{message} #{exception}"
×
UNCOV
14
      head :too_many_requests
×
UNCOV
15
    elsif exception.is_a?(Alma::NotFoundError)
×
UNCOV
16
      Rails.logger.error "HTTP 404. #{message} #{exception}"
×
UNCOV
17
      head :not_found
×
UNCOV
18
    elsif exception.is_a?(Alma::StandardError)
×
UNCOV
19
      Rails.logger.error "HTTP 400. #{message} #{exception}"
×
UNCOV
20
      head :bad_request
×
UNCOV
21
    elsif exception.is_a?(Net::ReadTimeout)
×
UNCOV
22
      Rails.logger.error "HTTP 504. #{message} #{exception}"
×
UNCOV
23
      head :gateway_timeout
×
24
    else
UNCOV
25
      Rails.logger.error "HTTP 500. #{message} #{exception}"
×
UNCOV
26
      head :internal_server_error
×
27
    end
28
  end
29
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