Condition Coverage

blib/lib/Validate/Tiny.pm
Criterion Covered Total %
condition 53 69 76.8


and 3 conditions

line !l l&&!r l&&r condition
157 6 14 17 defined $_[0] && $_[0] ne ''
164 2 1 0 ref $condition and ref $condition ne 'CODE'
174 0 2 2 defined $value && $value ne ''
183 0 2 1 defined $_[1]{$other} && $_[0] eq $_[1]{$other}
194 1 2 2 length $_[0] >= $min && length $_[0] <= $max
250 5 0 1 defined $filters and ref $filters eq 'HASH'

or 2 conditions

line l !l condition
156 1 9 shift() || 'Required'
163 1 2 $err_msg ||= 'Required'
180 1 2 $err_msg ||= 'Invalid value'
220 1 1 $err_msg ||= 'Invalid value'
229 1 2 $err_msg ||= 'Invalid value'
239 1 2 $err_msg ||= 'Invalid value'

or 3 conditions

line l !l&&r !l&&!r condition
49 2 2 124 ref $$rules{$_} ne 'ARRAY' or @{$$rules{$_};} % 2
71 0 47 0 $$error{$key} ||= $err
182 0 1 3 not defined $_[0] or $_[0] eq ''
191 1 1 0 $err_msg ||= "Must be between $min and $max symbols"
193 0 1 5 not defined $_[0] or $_[0] eq ''
202 1 1 0 $err_msg ||= "Must be at least $length symbols"
204 0 1 3 not defined $_[0] or $_[0] eq ''
211 1 1 0 $err_msg ||= "Must be at the most $length symbols"
213 0 1 4 not defined $_[0] or $_[0] eq ''
222 0 1 4 not defined $_[0] or $_[0] eq ''
232 0 1 4 not defined $_[0] or $_[0] eq ''
242 0 1 4 not defined $_[0] or $_[0] eq ''
262 1 1 4 ref $input ne 'HASH' or ref $rules ne 'HASH'