Branch Coverage

blib/lib/HTTP/Request/Generator.pm
Criterion Covered Total %
branch 46 66 69.7


line true false branch
68 11 59 ref $item ? :
70 80 defined $item ? :
77 1 185 if ($limit and @res > $limit)
107 70528 0 if ($values)
108 70480 48 if ($raw) { }
109 52791 2 exists $values->{$1} ? :
111 24 0 exists $values->{$1} ? :
120 3 180 ref $_ ne 'ARRAY' ? :
126 15 0 unless $defaults{$name}
128 1 14 if ($item)
134 0 1 if ($item =~ /\{.*\}/) { }
142 0 0 if ($i =~ /^([^{]*)\{([^}]+)\}([^{]*)/) { }
218 14 1 if ($scheme)
223 15 0 if ($host)
228 4 11 if ($port)
233 11 4 if ($path)
252 186 17576 wantarray ? :
255 15 10 if (my $pattern = delete $options{'pattern'})
268 150 0 @v ? :
298 24 17762 unless @v
307 122 17640 if (@query_params)
312 8 17754 if (@body_params)
318 17632 130 if (@url_params)
331 0 17762 unless $values{'headers'}
338 17630 132 if ($req->{'host'})
341 12 17618 if $req->{'port'} and $req->{'port'} != $uri->default_port
462 0 25 if $options{'protocol'}
465 24 1 if (wantarray) { }
493 0 0 if (keys %{$$req{'body_params'};}) { }
507 0 0 unless $req->{'query_params'}
546 0 0 if (keys %{$$req{'body_params'};}) { }
618 0 0 unless delete $env{'query_params'}
619 0 0 unless delete $env{'body_params'}