Branch Coverage

blib/lib/Slack/RTM/Bot/Client.pm
Criterion Covered Total %
branch 16 52 30.7


line true false branch
32 0 3 unless $self->{'token'}
45 0 1 if ($@)
48 1 0 unless $content->{'ok'}
55 0 0 if ($@)
58 0 0 unless $content->{'ok'}
78 0 0 if $self->{'options'}{'max_message_size'}
79 0 0 if $self->{'options'}{'max_message_size'}
89 0 0 if $self->{'options'}{'debug'}
113 0 0 if ($data)
128 0 0 unless $id ||= $self->_refetch_conversation_id($name)
143 0 1 unless $name ||= $self->_refetch_conversation_name($id)
164 0 0 if ($@)
167 0 0 unless $content->{'ok'}
170 0 0 if ($channel->{'is_im'})
173 0 0 unless $name ||= $self->_refetch_user_name($user_id)
188 0 1 unless $name ||= $self->_refetch_user_name($id)
219 0 0 if (defined $args->{'response_metadata'}{'next_cursor'})
225 0 0 if ($@)
237 0 5 if ($@)
240 0 5 if ($buffer_obj->{'type'} and $buffer_obj->{'type'} eq "reconnect_url")
245 1 4 if ($buffer_obj->{'user'} and not ref $buffer_obj->{'user'})
247 0 1 unless $user
249 1 4 if ($buffer_obj->{'channel'} and not ref $buffer_obj->{'channel'})
251 0 1 unless $channel
262 5 5 unless (defined $response->{$key} and $response->{$key} =~ /$regex/)
269 0 5 if ($@)