Branch Coverage

blib/lib/Net/Mattermost/Bot.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
54 0 0 if ($out->{'status_code'} and not &is_success($init->{'status_code'}))
58 0 0 if ($init->header('Token')) { }
81 0 0 unless $content and $content->{'event'}
83 0 0 if ($content->{'data'}{'post'})
86 0 0 if $post_data->{'user_id'} eq $self->user_id
91 0 0 if ($content->{'event'} eq 'hello') { }
0 0 elsif ($content->{'event'} eq 'typing') { }
0 0 elsif ($content->{'event'} eq 'channel_viewed') { }
0 0 elsif ($content->{'event'} eq 'posted') { }
92 0 0 if ($self->debug)
132 0 0 if $self->debug
142 0 0 unless $tx->is_websocket
147 0 0 if $self->debug
166 0 0 if $ret and ref $ret eq 'HASH' and $ret->{'ws_send'}
170 0 0 unless 'Mojo::IOLoop'->is_running
184 0 0 unless ($args->{'channel_id'})