Condition Coverage

blib/lib/App/UpdateCPANfile.pm
Criterion Covered Total %
condition 31 39 79.4


and 3 conditions

line !l l&&!r l&&r condition
90 4 0 25 defined $installed_module && $installed_module->version_for($module)
92 4 0 25 defined $installed_module and defined $installed_version
4 2 23 defined $installed_module and defined $installed_version and !defined($required_version) || $required_version ne "== $installed_version"
2 2 21 defined $installed_module and defined $installed_version and !defined($required_version) || $required_version ne "== $installed_version" and $installed_version ne 'undef'
126 0 4 19 defined $latest_version and !defined($required_version) || $required_version ne "== $latest_version"
4 2 17 defined $latest_version and !defined($required_version) || $required_version ne "== $latest_version" and $latest_version ne 'undef'

or 2 conditions

line l !l condition
24 31 3 $_[0]{'path'} // 'cpanfile'
28 15 1 $_[0]{'snapshot_path'} // 'cpanfile.snapshot'
32 10 64 $_[0]{'options'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
38 29 20 0 $self->{'parser'} //= 'Module::CPANfile'->load($self->path)
44 3 6 0 $self->{'writer'} //= 'Module::CPANfile::Writer'->new($self->path)
50 19 8 0 $self->{'package_details'} //= 'App::UpdateCPANfile::PackageDetails'->new
92 0 23 2 !defined($required_version) || $required_version ne "== $installed_version"
126 0 19 4 !defined($required_version) || $required_version ne "== $latest_version"