blib/lib/Scalar/Validation.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 33 | 63.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
742 | 0 | 39 | 2 | $message_store && $mode |
996 | 0 | 0 | 3 | defined $default and $value_pos >= 0 |
1139 | 18 | 87 | 593 | $parent_is_valid and $$rule_ref{-'where'}() |
line | l | !l | condition |
---|---|---|---|
643 | 5 | 0 | shift() || '' |
711 | 0 | 12 | par('message_text', 'Scalar', shift()) || 'extra parameters found' |
735 | 0 | 5 | shift() || 0 |
740 | 2 | 39 | shift() || '' |
814 | 11 | 1 | npar(-'message', -'Optional', 'CodeRef', \%call_options, sub { "rule '${rule_name}': message" . _defined_or_not_message($_, " is not a code reference: $_"); } ) || sub { "Value $_ is not valid for rule '${rule_name}'"; } |
1089 | 899 | 1 | shift() || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
62 | 0 | 0 | 0 | $module_string or $module_string =~ /^[\w:]+$/ |
588 | 6 | 0 | 18 | $arg eq 1 or $arg eq 0 |
742 | 39 | 0 | 2 | not $message_store && $mode or $mode ne '-clear' |
1133 | 98 | 601 | 0 | $message_ref || $$rule_ref{-'message'} |