circleci
1 of 2 new or added lines in 1 file covered. (50.0%)
2136 existing lines in 138 files now uncovered.3967 of 6302 relevant lines covered (62.95%)
75.79 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
class EventHandler |
1✔ |
4 |
include Sneakers::Worker |
1✔ |
5 |
from_queue :"catalog_#{Rails.env}"
|
1✔ |
6 |
|
|
7 |
def work(msg) |
1✔ |
UNCOV
8
|
msg = JSON.parse(msg)
|
× |
UNCOV
9
|
result = EventProcessor.new(msg).process
|
× |
UNCOV
10
|
if result
|
× |
UNCOV
11
|
ack! |
× |
12 |
else
|
|
UNCOV
13
|
reject! |
× |
14 |
end
|
|
15 |
end
|
|
16 |
end
|