Branch Coverage

blib/lib/Slack/RTM/Bot/Client.pm
Criterion Covered Total %
branch 16 44 36.3


line true false branch
33 0 3 unless $self->{'token'}
46 0 1 if ($@)
49 1 0 unless $content->{'ok'}
56 0 0 if ($@)
59 0 0 unless $content->{'ok'}
79 0 0 if $self->{'options'}{'max_message_size'}
80 0 0 if $self->{'options'}{'max_message_size'}
90 0 0 if $self->{'options'}{'debug'}
114 0 0 if ($data)
129 0 0 unless $id ||= $self->_refetch_conversation_id($name)
144 0 1 unless $name ||= $self->_refetch_conversation_name($id)
172 0 0 if ($@)
181 0 1 unless $name ||= $self->_refetch_user_name($id)
216 0 0 if ($@)
228 0 5 if ($@)
231 0 5 if ($buffer_obj->{'type'} and $buffer_obj->{'type'} eq 'reconnect_url')
236 1 4 if ($buffer_obj->{'user'} and not ref $buffer_obj->{'user'})
238 0 1 unless $user
240 1 4 if ($buffer_obj->{'channel'} and not ref $buffer_obj->{'channel'})
242 0 1 unless $channel
253 5 4 unless (defined $response->{$key} and $response->{$key} =~ /$regex/)
260 0 5 if ($@)