Branch Coverage

blib/lib/Code/Quality.pm
Criterion Covered Total %
branch 16 52 30.7


line true false branch
103 8 0 if defined $DEBUG
157 0 8 unless defined $official_solution
165 0 8 if $loc_official_solution == 0
171 23 6 if $loc_absolute_diff <= $_->[0]
174 4 4 if &any(\&$predicate, @short_code_criteria)
175 3 1 if &any(\&$predicate, @long_code_criteria)
235 0 0 unless print $fh $code
236 0 0 unless close $fh
242 3 0 unless $clang_tidy_path
244 0 0 unless defined $extension
262 0 0 if ($signal)
269 0 0 unless my($row, $col, $type, $msg) = $line =~ /$fh:(\d+):(\d+): (\w+): (.*)$/su
274 0 0 if $type eq 'note'
321 3 0 unless $lizard_path
323 0 0 unless defined $extension
328 0 0 if ($?)
334 0 0 unless ($csv)
345 0 0 $line{'NLOC'} > $lizard_warning_loc ? :
0 0 $line{'NLOC'} > $lizard_error_loc ? :
348 0 0 $line{'CCN'} > $lizard_warning_ccn ? :
0 0 $line{'CCN'} > $lizard_error_ccn ? :
375 0 0 unless defined $a
376 0 0 if defined $b
394 0 8 unless defined $warnings
395 1 7 if &any(sub { $_->[0] eq 'error'; } , @$warnings)
396 3 4 if &any(sub { $_->[0] eq 'warning'; } , @$warnings)