Condition Coverage

blib/lib/Pinwheel/View/ERB.pm
Criterion Covered Total %
condition 56 56 100.0


and 3 conditions

line !l l&&!r l&&r condition
60 15 31 51 $addnl and $s =~ /\n\s*$/
104 180 133 224 $type != $TEXT and $text ne ''
108 357 1 179 $type == $TEXT and $linetype != 4
184 164 167 16 $type eq 'ID' || $type eq '@ID' and $next_type eq '='
175 149 7 $type eq 'ID' and $next_type eq ','
281 6 4 75 $$token[0] ne 'or' and $$token[0] ne 'and'
354 45 13 526 $$token[0] ne '+' and $$token[0] ne '-'
374 11 4 587 $op ne '*' and $op ne '/'
15 3 584 $op ne '*' and $op ne '/' and $op ne '%'
410 24 105 93 $$token[0] eq 'ID' and &$lexer(2)->[0] eq '('
488 55 1 12 &$lexer(1)->[0] eq 'SYM' and &$lexer(2)->[0] eq '=>'
527 44 1 7 $$token[0] ne 'ID' and $$token[0] ne 'STMT'
553 4 1 15 $_[0] =~ /^-?\d+$/ and $_[1] =~ /^-?\d+$/

or 2 conditions

line l !l condition
198 2 291 parse_conditional($lexer, $writer) || ''

or 3 conditions

line l !l&&r !l&&!r condition
131 3 1 25 scalar @blocks < 1 or $blocks[-1][0] ne $_[0]
184 167 16 164 $type eq 'ID' || $type eq '@ID'
242 290 1 2 $$token[0] ne 'STMT' or $$token[1] ne 'if'
410 105 18 6 $$token[0] eq 'ID' or $$token[0] eq '@ID'
523 52 12 115 $s eq '.' or $s eq '['