Condition Coverage

blib/lib/CodeGen/Cpppp/Template.pm
Criterion Covered Total %
condition 31 68 45.5


and 3 conditions

line !l l&&!r l&&r condition
207 12 0 22 @args == 1 && ref $args[0]
320 10 5 5 defined $1 and length $1 > $maxdigit
373 11 122 0 @out == 1 and ref $out[0] eq "ARRAY"
374 145 0 0 ref $_ eq "CODE" and $_ = &$_($self, $out)
382 0 6 5 $self->{'autostatementline'} and $last_char eq '{' || $last_char eq ';'
6 2 3 $self->{'autostatementline'} and $last_char eq '{' || $last_char eq ';' and substr($text, $s->{'pos'} + $s->{'len'}, 1) eq ";"
0 8 0 $self->{'autocomma'} and $last_char eq ',' || $last_char eq '(' || $last_char eq '{'
0 0 0 $self->{'autoindent'} and not $is_inline
0 0 0 $self->{'autoindent'} and not $is_inline and not $join_sep =~ /\n/u
386 0 0 3 not $is_inline and substr($text, $s->{'pos'} + $s->{'len'}, 2) eq ";\n"
415 0 8 120 $self->{'autoindent'} and length $indent_prefix

or 2 conditions

line l !l condition
191 0 0 $_[1] || 0
192 0 0 $_[1] || 0
193 0 0 $_[1] || 0
194 0 0 $_[1] || 0
196 0 0 $_[1] || 0
230 64 32 $parse->{$_} || 0
340 22 28 $self->{'current_out'} //= ""

or 3 conditions

line l !l&&r !l&&!r condition
138 1 0 0 ${"${class}::cpppp_version";} // __PACKAGE__->VERSION
246 0 0 0 $$params{$p . $k} // $params->{$k}
332 0 0 0 ord $_ > 126 || ord $_ < 33
350 11 9 0 $colmarker{$s->{'colgroup'}} //= _colmarker($s->{'colgroup'})
382 3 2 6 $last_char eq '{' || $last_char eq ';'
6 2 0 $last_char eq ',' || $last_char eq '(' || $last_char eq '{'
402 2 0 6 not @out or $out[0] =~ /^\s*,/u