Condition Coverage

blib/lib/String/Divert.pm
Criterion Covered Total %
condition 21 45 46.6


and 3 conditions

line !l l&&!r l&&r condition
164 0 0 0 $prolog ne '' and not $$self{'storage'} =~ /^(none|fold)/
176 0 0 29 $string ne '' and not $$self{'storage'} =~ /^(none|fold)/
221 6 6 6 @{$$self{'chunks'};} > 0 and ref $$self{'chunks'}[-1]
263 0 0 20 $string =~ /([^\n]+)$/s and not $string =~ /\n$/s
337 29 0 0 ref $obj && (UNIVERSAL::isa($obj, 'String::Divert') || UNIVERSAL::isa($obj, 'String::Divert::__OVERLOAD__'))
362 11 0 0 ref $id and &_isobjeq($chunk, $id)
0 3 8 not ref $id and $chunk->name eq $id
390 0 0 1 defined $a and defined $b
394 0 1 0 defined $id and $id ne 'foo'

or 3 conditions

line l !l&&r !l&&!r condition
56 5 2 0 ref $proto || $proto
60 5 2 0 $name ||= &_anonymous_name()
208 1 2 18 $$self{'overwrite'} eq 'once' or $$self{'overwrite'} eq 'always'
221 0 0 18 ref $chunk or @{$$self{'chunks'};} > 0 and ref $$self{'chunks'}[-1]
362 0 0 11 ref $id and &_isobjeq($chunk, $id) or not ref $id and $chunk->name eq $id
394 0 0 1 not defined $id or defined $id and $id ne 'foo'