Branch Coverage

blib/lib/WebService/Slack/WebApi/Files.pm
Criterion Covered Total %
branch 12 38 31.5


line true false branch
62 0 1 if ($self->client->token and $params->{'http_auth'})
69 1 0 if (exists $params->{'file_type'}) { }
75 1 0 if ($self->client->token) { }
0 0 elsif ($params->{'http_auth'}) { }
91 1 0 if $response->{'success'}
109 0 2 if exists $args->{'channels'}
128 1 0 if exists $args->{'file'}
129 1 0 if exists $args->{'channels'}
163 0 0 if not defined $channel_not_found or defined $channel_not_found and ref $channel_not_found ne "CODE"
165 0 0 if (not exists $response->{'ok'}) { }
171 0 0 if ($response->{'ok'}) { }
173 0 0 if (exists $response->{'warning'}) { }
184 0 0 if ($response->{'error'} eq 'channel_not_found') { }
194 0 0 if $code == 0
231 0 1 unless (defined $error_handler)
234 0 1 if (defined $error_handler and ref $error_handler ne "CODE")
238 0 1 unless (defined $channel_not_found)
241 0 1 if (defined $channel_not_found and ref $channel_not_found ne "CODE")
258 1 0 if ($code == 0)