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

jdantonio / concurrent-ruby / #748

24 Apr 2014 12:31AM UTC coverage: 78.31% (-19.5%) from 97.805%
#748

push

jdantonio
Attempting to fix a brittle test of Concurrent::timer.

1928 of 2462 relevant lines covered (78.31%)

409.47 hits per line

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

54.55
/lib/concurrent/stoppable.rb
1
require 'concurrent/runnable'
1✔
2

3
module Concurrent
1✔
4

5
  module Stoppable
1✔
6

7
    def before_stop(&block)
1✔
8
      raise ArgumentError.new('no block given') unless block_given?
×
9
      raise Runnable::LifecycleError.new('#before_stop already set') if @before_stop_proc
×
10
      @before_stop_proc = block
×
11
      self
×
12
    end
13

14
    protected
1✔
15

16
    def before_stop_proc
1✔
17
      @before_stop_proc
×
18
    end
19
  end
20
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

© 2026 Coveralls, Inc