Branch Coverage

blib/lib/App/MatrixTool/HTTPClient.pm
Criterion Covered Total %
branch 0 26 0.0


line true false branch
86 0 0 if (my($host, $port) = $server_name =~ /^(\S+):(\d+)$/)
99 0 0 unless $errnum == 1 or $errnum == 2
150 0 0 if $params{'params'}
158 0 0 if (defined $params{'content'})
159 0 0 if (ref $params{'content'}) { }
171 0 0 if ($self->{'print_request'})
181 0 0 if ($path =~ m[^/_matrix/key/]) { }
0 0 elsif ($path =~ m[^/_matrix/(?:client|media)/]) { }
190 0 0 unless my($server, $port) = $params{'server'} =~ /^([^:]+)(?::(\d+))?$/
205 0 0 if $self->{'print_request'}
213 0 0 if ($self->{'print_response'})
219 0 0 if ($name eq 'http' and $self->{'print_response'})
242 0 0 unless $response->content_type eq 'application/json'