push
circleci
23 of 23 new or added lines in 1 file covered. (100.0%)
3090 existing lines in 140 files now uncovered.2779 of 6127 relevant lines covered (45.36%)
7.28 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
class EventHandler |
2✔ |
4 |
include Sneakers::Worker |
2✔ |
5 |
from_queue :"catalog_#{Rails.env}"
|
2✔ |
6 |
|
|
7 |
def work(msg) |
2✔ |
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
|