• 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

50.0
/marc_to_solr/lib/normal_uri_factory.rb
1
# Class for building normalized URIs
2
class NormalUriFactory
1✔
3
  # Constructor
4
  # @param value [String] String value for the URL
5
  def initialize(value:)
1✔
UNCOV
6
    @parser = URI::DEFAULT_PARSER
×
UNCOV
7
    @value = clean(value)
×
8
  end
9

10
  # Build the normalized URI
11
  # @return [URI::Generic] the URI Object for the resource
12
  def build
1✔
UNCOV
13
    URI.parse(@value)
×
14
  end
15

16
  private
1✔
17

18
    # Clean the URL value
19
    # @param value [String] String value for the URL
20
    def clean(value)
1✔
UNCOV
21
      return value if /#.+/.match?(value)
×
22

UNCOV
23
      @parser.escape(@parser.unescape(value).scrub)
×
24
    end
25
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