Branch Coverage

blib/lib/Telegram/Bot/Brain.pm
Criterion Covered Total %
branch 5 50 10.0


line true false branch
42 0 0 unless $now - $last_check >= $seconds
73 0 0 unless 'Mojo::IOLoop'->is_running
94 0 0 unless $args->{'chat_id'}
97 0 0 unless $args->{'text'}
101 0 0 if exists $args->{'parse_mode'}
102 0 0 if exists $args->{'disable_web_page_preview'}
103 0 0 if exists $args->{'disable_notification'}
104 0 0 if exists $args->{'reply_to_message_id'}
107 0 0 if (exists $args->{'reply_markup'})
109 0 0 if ref $reply_markup ne 'Telegram::Bot::Object::InlineKeyboardMarkup' and ref $reply_markup ne 'Telegram::Bot::Object::ReplyKeyboardMarkup' and ref $reply_markup ne 'Telegram::Bot::Object::ReplyKeyboardRemove' and ref $reply_markup ne 'Telegram::Bot::Object::ForceReply'
129 0 0 unless $args->{'chat_id'}
132 0 0 unless $args->{'from_chat_id'}
135 0 0 unless $args->{'message_id'}
139 0 0 if exists $args->{'disable_notification'}
154 0 0 unless $args->{'chat_id'}
161 0 0 unless $args->{'photo'}
162 0 0 if (-e $args->{'photo'}) { }
186 0 0 if $http_active
215 4 0 if $item->{'message'}
216 0 4 if $item->{'edited_message'}
217 0 4 if $item->{'channel_post'}
218 0 4 if $item->{'edited_channel_post'}
222 0 4 unless ($update)
239 0 0 if ($res->is_success) { }
0 0 elsif ($res->is_error) { }