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 EventProcessor |
2✔ |
| 4 |
class Processor |
2✔ |
| 5 |
attr_reader :event
|
2✔ |
| 6 |
def initialize(event) |
2✔ |
|
UNCOV
7
|
@event = event
|
× |
| 8 |
end
|
|
| 9 |
|
|
| 10 |
private |
2✔ |
| 11 |
|
|
| 12 |
def event_type |
2✔ |
|
UNCOV
13
|
event['event']
|
× |
| 14 |
end
|
|
| 15 |
|
|
| 16 |
def id |
2✔ |
|
UNCOV
17
|
event['id']
|
× |
| 18 |
end
|
|
| 19 |
|
|
| 20 |
def doc |
2✔ |
|
UNCOV
21
|
event['doc']
|
× |
| 22 |
end
|
|
| 23 |
|
|
| 24 |
def bulk? |
2✔ |
|
UNCOV
25
|
event['bulk'] == 'true' |
× |
| 26 |
end
|
|
| 27 |
|
|
| 28 |
def index |
2✔ |
|
UNCOV
29
|
Blacklight.default_index.connection
|
× |
| 30 |
end
|
|
| 31 |
end
|
|
| 32 |
end
|