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
91 4 0 32 defined $installed_module && $installed_module->version_for($module)
93 4 0 32 defined $installed_module and defined $installed_version
4 2 30 defined $installed_module and defined $installed_version and !defined($required_version) || $required_version ne "== $installed_version"
2 2 28 defined $installed_module and defined $installed_version and !defined($required_version) || $required_version ne "== $installed_version" and $installed_version ne 'undef'
127 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
25 34 3 $_[0]{'path'} // 'cpanfile'
29 18 1 $_[0]{'snapshot_path'} // 'cpanfile.snapshot'
33 25 85 $_[0]{'options'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
39 32 23 0 $self->{'parser'} //= 'Module::CPANfile'->load($self->path)
45 3 6 0 $self->{'writer'} //= 'Module::CPANfile::Writer'->new($self->path)
51 19 8 0 $self->{'package_details'} //= 'App::UpdateCPANfile::PackageDetails'->new
93 0 30 2 !defined($required_version) || $required_version ne "== $installed_version"
127 0 19 4 !defined($required_version) || $required_version ne "== $latest_version"