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

payrollhero / dispatch-rider / #3015

02 Sep 2022 11:22PM UTC coverage: 0.409% (-84.7%) from 85.154%
#3015

push

web-flow
Layout/SpaceInsideStringInterpolation-20220901233630 (#89)

* :police_car: regenerate rubocop todo

* :police_car: Layout/SpaceInsideStringInterpolation

* :police_car: regenerate rubocop todo

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>

0 of 1 new or added line in 1 file covered. (0.0%)

1529 existing lines in 63 files now uncovered.

7 of 1711 relevant lines covered (0.41%)

0.0 hits per line

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

0.0
/lib/dispatch-rider/registrars/base.rb
1
# This is the base class for the registrars.
2
#  It defines the interface that other registrars inherit.
3
#  This is an abstract class.
4
#  The child classes inheriting this interface must define the 'value' method.
UNCOV
5
module DispatchRider
×
UNCOV
6
  module Registrars
×
UNCOV
7
    class Base
×
UNCOV
8
      attr_reader :store
×
9

UNCOV
10
      def initialize
×
UNCOV
11
        @store = {}
×
UNCOV
12
      end
×
13

UNCOV
14
      def register(name, options = {})
×
UNCOV
15
        store[name.to_sym] = value(name, options)
×
UNCOV
16
        self
×
UNCOV
17
      rescue NameError
×
UNCOV
18
        raise NotFound.new(name)
×
UNCOV
19
      end
×
20

UNCOV
21
      def value(name, options = {})
×
22
        raise NotImplementedError
×
UNCOV
23
      end
×
24

UNCOV
25
      def unregister(name)
×
UNCOV
26
        store.delete(name.to_sym)
×
UNCOV
27
        self
×
UNCOV
28
      end
×
29

UNCOV
30
      def fetch(name)
×
UNCOV
31
        begin
×
UNCOV
32
          store.fetch(name.to_sym)
×
UNCOV
33
        rescue IndexError
×
UNCOV
34
          raise NotRegistered.new(name)
×
UNCOV
35
        end
×
UNCOV
36
      end
×
UNCOV
37
    end
×
UNCOV
38
  end
×
UNCOV
39
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