Branch Coverage

blib/lib/App/CPAN/Get/MetaCPAN.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
32 16 1 if (defined $self->{'lwp_user_agent'}) { }
33 2 14 unless (builtin::blessed($self->{'lwp_user_agent'}) and $self->{'lwp_user_agent'}->isa("LWP::UserAgent"))
50 2 6 if (not defined $args_hr or ref $args_hr ne "HASH")
55 1 5 unless (exists $args_hr->{'package'})
63 2 3 if ($App::CPAN::Get::MetaCPAN::EVAL_ERROR)
64 2 0 if ($App::CPAN::Get::MetaCPAN::EVAL_ERROR =~ /^Cannot fetch/ms) { }
79 0 1 if (defined $opts_hr and exists $opts_hr->{'f'} and $opts_hr->{'f'})
86 0 1 if (-r $file and not $force)
101 0 5 if ($args_hr->{'include_dev'})
104 1 4 if ($args_hr->{'version'}) { }
0 4 elsif ($args_hr->{'version_range'}) { }
120 2 4 unless ($res->is_success)
125 2 0 if ($res->is_client_error) { }
0 0 elsif ($res->is_server_error) { }