Branch Coverage

blib/lib/Bot/Backbone/Service/SlackChat.pm
Criterion Covered Total %
branch 0 68 0.0


line true false branch
123 0 0 if ($res->{'ok'}) { }
140 0 0 unless $self->has_channel_joined_callback
144 0 0 if $self->_seen_channels->{$id}
156 0 0 unless $self->has_channel_joined_callback
164 0 0 if ($channels->{'ok'})
165 0 0 if $_->{'is_member'}
172 0 0 if ($groups->{'ok'})
179 0 0 if $self->_seen_channels->{$id}
211 0 0 if $cached
222 0 0 if ($by eq 'id') { }
0 0 elsif ($by eq 'name') { }
226 0 0 if $res->{'ok'}
230 0 0 if ($list->{'ok'})
238 0 0 if (defined $user) { }
260 0 0 unless $by eq 'user' or $by eq 'id'
264 0 0 unless $list->{'ok'}
276 0 0 unless $by eq 'id'
280 0 0 if ($type eq 'G') { }
0 0 elsif ($type eq 'C') { }
284 0 0 if $res->{'ok'}
290 0 0 if $res->{'ok'}
296 0 0 if (defined $group) { }
310 0 0 if ($type eq 'G') { }
0 0 elsif ($type eq 'C') { }
329 0 0 if defined $slack_msg->{'subtype'}
332 0 0 if defined $slack_msg->{'edited'}
344 0 0 if ($channel_type eq 'D') { }
357 0 0 if $slack_msg->{'user'} eq $self->whoami->{'user_id'}
387 0 0 unless time - $self->last_mark > 15
393 0 0 if ($type eq 'C') { }
0 0 elsif ($type eq 'G') { }
0 0 elsif ($type eq 'D') { }
411 0 0 if $slack_msg->{'user'} eq $self->whoami->{'user_id'}
417 0 0 if ($self->is_to_me($me_user, \$text))