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

pulibrary / bibdata / f400817a-dbb4-4213-8c38-ea1927389f1a

01 Oct 2025 12:30PM UTC coverage: 90.779% (+1.1%) from 89.665%
f400817a-dbb4-4213-8c38-ea1927389f1a

push

circleci

christinach
Update CacheMap to look for the correct structure from figgy
Exclude resource types with no ark
and no resource_identifier(bibID)

related to [#1720]
related to [#1848]

4 of 28 new or added lines in 1 file covered. (14.29%)

4051 existing lines in 107 files now uncovered.

3229 of 3557 relevant lines covered (90.78%)

913.12 hits per line

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

87.5
/app/controllers/application_controller.rb
UNCOV
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.
UNCOV
4
  protect_from_forgery with: :exception
1✔
UNCOV
5
  include ApplicationHelper
1✔
6

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

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

UNCOV
30
  private
1✔
31

UNCOV
32
    def verify_admin!
1✔
33
      authenticate_user!
×
34
      head :forbidden unless current_user.catalog_admin?
×
UNCOV
35
    end
UNCOV
36
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

© 2026 Coveralls, Inc