Condition Coverage

blib/lib/PPIx/QuoteLike.pm
Criterion Covered Total %
condition 43 67 64.1


and 3 conditions

line !l l&&!r l&&r condition
107 4 5 0 not $gap and $start_delim =~ / \A \w \z /msx
478 74 5 4 $loc->{'tab_width'} > 1 and $content =~ / \t /msx
599 23 0 0 defined $encoding and _encode_available()
639 11 0 6 $cached_doc and $doc == $cached_doc
750 0 0 3 $code = $special{$sigil} and my $elem = &$code($self, $sigil, $_[2])
798 0 0 1 $allow_subscr{$sigil} and $_[0] =~ / \G (?= ( [[{] ) ) /cgmsx
859 59 54 52 @rslt and $can_merge{$elem->[0]}
113 47 5 @rslt and $can_merge{$elem->[0]} and $elem->[0] eq $rslt[-1][0]
893 1 0 1 '' ne $arg{'sibling'}[-1][0] && ('PPIx::QuoteLike::Token::String' ne $arg{'sibling'}[-1][0] || !($arg{'sibling'}[-1][1] =~ / \n \z /msx))

or 2 conditions

line l !l condition
115 9 0 pos $string || 0
134 7 0 pos $string || 0
169 46 0 pos $string || 0
187 14 110 defined $_ or $_ = ""
201 7 55 $self->{'start'} ||= [$self->_make_token("PPIx::QuoteLike::Token::Delimiter", $start_delim)]
371 36 48 $self->{'elements'} ||= [map({$self->$_;} "type", "start", "children", "finish")]
409 0 54 $inx or 0
457 17 2 $loc{'tab_width'} ||= 1
530 0 0 $inx ||= 0
553 0 54 $inx or 0
567 0 33 $inx or 0

or 3 conditions

line l !l&&r !l&&!r condition
82 2 69 43 !!$arg{'location'} || __instance($source, 'PPI::Element')
94 0 114 0 ref $class || $class
113 5 1 3 'qq' eq $type || 'qx' eq $type && q['] ne $start_delim
446 81 19 0 $self->{'_location'} ||= do { my(%loc) = ("line_content", "", "location", $self->{'location'}); if (__instance($self->{'source'}, "PPI::Element")) { $loc{'location'} ||= $self->{'source'}->location; if (my $doc = $self->{'source'}->document) { $loc{'tab_width'} = $doc->tab_width; } ; } ; $loc{'tab_width'} ||= 1; \%loc }
452 0 17 0 $loc{'location'} ||= $self->{'source'}->location
598 0 0 23 $encoding ||= $self->{'encoding'}