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

jdantonio / concurrent-ruby / #712

24 Apr 2014 12:31AM UTC coverage: 77.896% (-19.9%) from 97.805%
#712

push

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

1903 of 2443 relevant lines covered (77.9%)

541.94 hits per line

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

84.62
/lib/concurrent/executor/per_thread_executor.rb
1
module Concurrent
1✔
2

3
  class PerThreadExecutor
1✔
4

5
    def self.post(*args)
1✔
6
      raise ArgumentError.new('no block given') unless block_given?
1,356✔
7
      Thread.new(*args) do
1,356✔
8
        Thread.current.abort_on_exception = false
1,321✔
9
        yield(*args)
1,321✔
10
      end
11
      return true
1,356✔
12
    end
13

14
    def post(*args, &task)
1✔
15
      return PerThreadExecutor.post(*args, &task)
1,356✔
16
    end
17

18
    def <<(task)
1✔
19
      PerThreadExecutor.post(&task)
×
20
      return self
×
21
    end
22
  end
23
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