• 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

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✔
UNCOV
7
    @vals = []
×
UNCOV
8
    record.fields('600'..'699').each do |f|
×
UNCOV
9
      f.each do |sf|
×
UNCOV
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✔
UNCOV
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