| blib/lib/Module/Patch.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 43 | 39.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 106 | 0 | 0 | 0 | $load and $warn |
| 237 | 0 | 0 | 0 | not $_ =~ ~@s and $_ =~ /$sub_name/ |
| 246 | 0 | 0 | 5 | defined $target_version and length $target_version |
| line | l | !l | condition |
|---|---|---|---|
| 58 | 0 | 6 | $load //= 1 |
| 66 | 1 | 5 | $force //= 0 |
| 74 | 0 | 6 | $warn //= 1 |
| 78 | 6 | 0 | $pdata->{'v'} // 1 |
| 87 | 0 | 0 | ${"${self}::VERSION";} // "?" |
| 0 | 0 | $VERSION // "?" | |
| 129 | 3 | 3 | $pdata->{'config'} // {} |
| 196 | 5 | 0 | $opts //= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 57 | 0 | 0 | 6 | $load //= ${"${self}::patch_data_cached";}->{'-load_target'} |
| 65 | 1 | 0 | 5 | $force //= ${"${self}::patch_data_cached";}->{'-force'} |
| 73 | 0 | 0 | 6 | $warn //= ${"${self}::patch_data_cached";}->{'-warn_target_loaded'} |
| 80 | 0 | 0 | 6 | $v == 1 or $v == 2 |
| 156 | 0 | 5 | 0 | ref $self || $self |
| 244 | 2 | 0 | 5 | not defined $pspec->{'mod_version'} or $pspec->{'mod_version'} eq ":all" |