Branch Coverage

blib/lib/Bot/ChatBots/Telegram/Sender.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
40 0 1 @_ && ref $_[0] ? :
44 0 1 exists $args{'start_loop'} ? :
45 0 1 if $start_loop and not 'Mojo::IOLoop'->is_running
51 0 5 unless defined $message
53 0 5 @_ && ref $_[0] ? :
56 2 3 ref $message ? :
67 0 1 unless $method_for->{$name}
71 3 2 if ($method eq 'sendMessage' and not exists $message->{'chat_id'})
72 1 2 if (defined $args{'record'}) { }
1 1 elsif ($self->has_recipient) { }
84 1 3 if ($args{'callback'}) { }
0 3 elsif ($self->can('callback')) { }
89 0 0 if &$has_callback($self)
94 1 3 if @callback