push
travis-ci
214 of 502 relevant lines covered (42.63%)
50.38 hits per line
1 |
module ResqueWeb |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
2 |
module WorkersHelper |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
3 |
def worker_hosts |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
4 |
@worker_hosts ||= begin |
× |
5 |
hosts = Hash.new { [] }
|
45 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
6 |
|
× |
7 |
Resque.workers.each do |worker| |
45 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
8 |
host, _ = worker.to_s.split(':')
|
× |
9 |
hosts[host] += [worker.to_s] |
× |
10 |
end
|
× |
11 |
|
× |
12 |
hosts |
45 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
13 |
end
|
45 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
14 |
end
|
× |
15 |
end
|
× |
16 |
end
|
× |