Condition Coverage

blib/lib/JE/Object/String.pm
Criterion Covered Total %
condition 51 64 79.6


and 3 conditions

line !l l&&!r l&&r condition
67 5 0 24 defined blessed($val) && $val->can('to_string')
165 6 11 35 $num == $num && $num
346 9 1 8 defined $_[1] and $_[1]->id ne 'undef'
460 1 2 52 defined $foo and $foo->can('class')
3 17 35 defined $foo and $foo->can('class') and $foo->class eq 'RegExp'
473 2 6 47 defined $bar and $bar->can('class')
8 26 21 defined $bar and $bar->can('class') and $bar->class eq 'Function'
608 2 6 15 $start == $start && $start
615 7 1 15 defined $end and $end->id ne 'undef'
617 1 1 13 $end == $end && $end
695 0 0 1 $limit == $limit && $limit
700 0 6 2 $sep->can('class') and $sep->class eq 'RegExp'

or 2 conditions

line l !l condition
400 116 3 eval { do { $re_obj->class } } || ''
571 36 3 eval { do { $re->class } } || ''

or 3 conditions

line l !l&&r !l&&!r condition
62 34 0 0 $global->prototype_for('String') || $global->prop('String')->prop('prototype')
247 1 1 10 $pos < 0 || $pos >= length $str
273 1 1 10 $pos < 0 || $pos >= length $str
400 1 19 100 not defined $re_obj or (eval { do { $re_obj->class } } || '') ne 'RegExp'
688 7 0 1 not defined $limit or $limit->id eq 'undef'
728 0 0 0 '' =~ /$sep/ || (@split = '')
785 5 0 76 not defined $end or $end->id eq 'undef'
891 0 0 4 not defined $len or $len->id eq 'undef'