Condition Coverage

blib/lib/Scalar/Validation.pm
Criterion Covered Total %
condition 21 35 60.0


and 3 conditions

line !l l&&!r l&&r condition
1076 0 37 2 $message_store && $mode
1331 0 0 3 defined $default and $value_pos >= 0
1489 18 87 590 $parent_is_valid and $$rule_ref{-'where'}()

or 2 conditions

line l !l condition
719 5 0 shift() || ''
851 0 12 _p_par('message_text', 'Scalar', shift()) || 'extra parameters found'
1061 0 0 $value || 1
1069 0 5 shift() || 0
1074 2 37 shift() || ''
1148 11 1 _p_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}'"; }
1439 883 1 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
62 0 0 0 $module_string or $module_string =~ /^[\w:]+$/
664 6 0 18 $arg eq 1 or $arg eq 0
1076 37 0 2 not $message_store && $mode or $mode ne '-clear'
1483 98 598 0 $message_ref || $$rule_ref{-'message'}