Condition Coverage

blib/lib/FormValidator/Tiny.pm
Criterion Covered Total %
condition 66 80 82.5


and 3 conditions

line !l l&&!r l&&r condition
276 22 0 1 &blessed($arg) and $arg->can('coerce')
305 4 0 6 defined $_[0] && $_[0] =~ /./u
313 2 0 8 defined $_[0] && $_[0] =~ /./u
323 4 4 0 &blessed($arg) and $arg->can('check') || $arg->can('validate')
375 28 0 0 &blessed($input) and $input->can('flatten')
383 23 0 5 &blessed($spec) and $spec->isa('FormValidator::Tiny')
464 4 1 13 /^(.)-(.)$/u and ord $1 < ord $2
488 6 2 3 @_ == 2 and 'ARRAY' eq ref $_[0]
8 0 3 @_ == 2 and 'ARRAY' eq ref $_[0] and 'ARRAY' eq ref $_[1]
525 2 1 3 $start ne '*' and $stop ne '*'
3 2 1 $start ne '*' and $stop ne '*' and $start > $stop
528 3 1 1 $start eq '*' and $stop eq '*'
588 2 2 3 $start ne '*' and $stop ne '*'
4 2 1 $start ne '*' and $stop ne '*' and $start > $stop
596 4 1 1 $start eq '*' and $stop eq '*'
637 1 1 1 defined $count and $count <= 1

or 2 conditions

line l !l condition
117 1 1 $message // ''
191 0 39 $depth //= 1
204 38 0 $package //= 'main'
211 24 15 ${$package;} //= {}
406 32 59 $decl->{'multiple'} // 0
407 0 91 $decl->{'trim'} // 1
649 4 1 shift() // 'both'

or 3 conditions

line l !l&&r !l&&!r condition
175 2 14 0 $error ||= $element_error
262 3 3 35 $op eq 'required' or $op eq 'optional'
323 2 1 1 $arg->can('check') || $arg->can('validate')
405 0 91 0 $decl->{'from'} // $field
582 2 6 1 $start eq '*' or &looks_like_number($start)
585 3 4 1 $stop eq '*' or &looks_like_number($stop)