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
274 22 0 1 &blessed($arg) and $arg->can('coerce')
303 4 0 6 defined $_[0] && $_[0] =~ /./u
311 2 0 8 defined $_[0] && $_[0] =~ /./u
321 4 4 0 &blessed($arg) and $arg->can('check') || $arg->can('validate')
373 28 0 0 &blessed($input) and $input->can('flatten')
381 23 0 5 &blessed($spec) and $spec->isa('FormValidator::Tiny')
462 4 1 13 /^(.)-(.)$/u and ord $1 < ord $2
486 6 2 3 @_ == 2 and 'ARRAY' eq ref $_[0]
8 0 3 @_ == 2 and 'ARRAY' eq ref $_[0] and 'ARRAY' eq ref $_[1]
523 2 1 3 $start ne '*' and $stop ne '*'
3 2 1 $start ne '*' and $stop ne '*' and $start > $stop
526 3 1 1 $start eq '*' and $stop eq '*'
586 2 2 3 $start ne '*' and $stop ne '*'
4 2 1 $start ne '*' and $stop ne '*' and $start > $stop
594 4 1 1 $start eq '*' and $stop eq '*'
618 1 1 1 defined $count and $count <= 1

or 2 conditions

line l !l condition
115 1 1 $message // ''
189 0 39 $depth //= 1
202 38 0 $package //= 'main'
209 24 15 ${$package;} //= {}
404 32 59 $decl->{'multiple'} // 0
405 0 91 $decl->{'trim'} // 1
630 4 1 shift() // 'both'

or 3 conditions

line l !l&&r !l&&!r condition
173 2 14 0 $error ||= $element_error
260 3 3 35 $op eq 'required' or $op eq 'optional'
321 2 1 1 $arg->can('check') || $arg->can('validate')
403 0 91 0 $decl->{'from'} // $field
580 2 6 1 $start eq '*' or &looks_like_number($start)
583 3 4 1 $stop eq '*' or &looks_like_number($stop)