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

pulibrary / orangelight / 4e01fe00-694b-47b4-8b30-2de4dc4acc66

31 Jul 2025 07:56PM UTC coverage: 92.891% (-2.5%) from 95.4%
4e01fe00-694b-47b4-8b30-2de4dc4acc66

Pull #4962

circleci

web-flow
Merge pull request #5130 from pulibrary/clean_up_scss_comments

Remove SCSS commented code.
Pull Request #4962: Orangelight pos workcycle 07-07-2025

193 of 197 new or added lines in 24 files covered. (97.97%)

161 existing lines in 35 files now uncovered.

5932 of 6386 relevant lines covered (92.89%)

1443.08 hits per line

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

88.89
/app/components/orangelight/constraint_component.rb
1
# frozen_string_literal: true
2

3
class Orangelight::ConstraintComponent < Blacklight::ConstraintComponent
2✔
4
  def constraint_value
2✔
5
    if old_style_params?
190✔
UNCOV
6
      @facet_item_presenter.constraint_label['0']
×
7
    elsif @facet_item_presenter.constraint_label.respond_to? :to_s
190✔
8
      @facet_item_presenter.constraint_label
190✔
9
    end
10
  end
11

12
  private
2✔
13

14
    def old_style_params?
2✔
15
      @facet_item_presenter.constraint_label.is_a?(ActiveSupport::HashWithIndifferentAccess) &&
190✔
16
        @facet_item_presenter.constraint_label.key?('0')
17
    end
18
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