Branch Coverage

blib/lib/PAUSE/Packages.pm
Criterion Covered Total %
branch 27 42 64.2


line true false branch
67 3 7 if /^$/
73 0 3 unless defined $di and defined $di->dist
74 1 2 if $di->dist gt $distname
75 2 0 if ($di->dist eq $distname)
100 3 4 if (not $self->path)
112 0 3 $self->ua->$PAUSE::Packages::_isa('HTTP::Tiny') ? :
116 1 2 if (-f $self->path)
117 0 1 if ($self->ua->$PAUSE::Packages::_isa('HTTP::Tiny')) { }
126 0 1 unless $uri->scheme
128 1 0 if ($uri->scheme eq "file" and -f $uri->path and (stat $uri->path)[9] < $cache_creation_time)
138 0 2 $self->ua->$PAUSE::Packages::_isa('HTTP::Tiny') ? :
140 2 0 $response->$PAUSE::Packages::_can('code') ? :
141 0 2 if ($status == 304)
146 1 1 if ($status == 200)
149 1 0 $response->$PAUSE::Packages::_can('content') ? :
154 1 0 $response->$PAUSE::Packages::_can('message') ? :
167 1 2 if ($line =~ /^$/ and $inheader)
171 1 1 if $inheader
176 1 0 if (defined $di and defined($distname = $di->dist) and defined $di->version) { }
177 1 0 if (not exists $release{$distname} or $release{$distname}{'version'} lt $di->version) { }
0 0 elsif ($di->version lt $release{$distname}{'version'}) { }