push
1 of 2 new or added lines in 2 files covered. (50.0%)
1362 existing lines in 62 files now uncovered.1219 of 2656 relevant lines covered (45.9%)
0.98 hits per line
| 1 |
module Concurrent |
1✔ |
| 2 |
class ImmediateExecutor |
1✔ |
| 3 |
include Executor
|
1✔ |
| 4 |
|
|
| 5 |
def post(*args, &task) |
1✔ |
|
UNCOV
6
|
raise ArgumentError.new('no block given') unless block_given? |
× |
|
UNCOV
7
|
task.call(*args) |
× |
|
UNCOV
8
|
true
|
× |
| 9 |
end
|
|
| 10 |
|
|
| 11 |
def <<(task) |
1✔ |
|
UNCOV
12
|
post(&task) |
× |
|
UNCOV
13
|
self
|
× |
| 14 |
end
|
|
| 15 |
end
|
|
| 16 |
end
|