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

pulibrary / bibdata / b3c4a532-5da0-46f8-9c20-20018605a028

21 Mar 2025 08:11PM UTC coverage: 42.257% (-49.9%) from 92.185%
b3c4a532-5da0-46f8-9c20-20018605a028

push

circleci

sandbergja
Move various gems from the default Gemfile group to a more appropriate group

1599 of 3784 relevant lines covered (42.26%)

2.56 hits per line

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

37.5
/marc_to_solr/lib/format/xv6xx.rb
1
# A utility class to get all the 6XX $v and $x, which
2
# are used over and over again in the format finder
3
class XV6XX
1✔
4
  # Find all the 6XXxv values in the given record
5
  # @param [MARC::Record] record
6
  def initialize(record)
1✔
7
    @vals = []
×
8
    record.fields('600'..'699').each do |f|
×
9
      f.each do |sf|
×
10
        @vals << sf.value if %[x v].include?(sf.code)
×
11
      end
12
    end
13
  end
14

15
  # Do any of the 6XXxv values match the given
16
  # regex?
17
  # @param [Regexp] regex The regex to match
18
  # @return [Boolean] Does the given regexp match at least one value?
19
  def match?(regex)
1✔
20
    return @vals.grep(regex).size > 0
×
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