blib/lib/Bot/ChatBots/Telegram/LongPoll.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 9 | 24 | 37.5 |
line | true | false | branch |
---|---|---|---|
48 | 0 | 1 | if $self->_start |
60 | 1 | 0 | if $data->{'ok'} |
64 | 0 | 0 | if ($Bot::ChatBots::Telegram::LongPoll::log->is_trace) |
76 | 0 | 1 | @_ && ref $_[0] ? : |
104 | 0 | 0 | if $self->should_rethrow($args) |
121 | 0 | 1 | unless defined $item |
122 | 0 | 1 | unless defined(my $record = $item->{'record'}) |
123 | 0 | 1 | unless defined(my $outcome = $item->{'outcome'}) |
124 | 1 | 0 | unless defined(my $message = $outcome->{'send_response'}) |
131 | 1 | 0 | if @updates |
137 | 0 | 1 | if $is_busy |
153 | 0 | 0 | unless 'Mojo::IOLoop'->is_running |