Branch Coverage

blib/lib/Test/SPDX/Coverage.pm
Criterion Covered Total %
branch 44 54 81.4


line true false branch
54 0 4 unless ref $opt eq "HASH"
57 1 3 unless -f $opt->{'manifest'}
58 0 3 unless -r $opt->{'manifest'}
61 0 3 unless ref $match eq "Regexp"
65 0 3 unless $lines > 0
69 2 1 if $diag > 1
71 2 1 if $diag > 2
75 0 3 unless open $fh, "<", $opt->{'manifest'}
76 2 1 if $diag > 3
79 1 39 if $entry =~ /\A#/
82 21 18 if $diag > 4
83 10 29 if ($entry =~ /$match/) { }
84 9 1 if $diag > 2
87 12 17 if $diag > 5
92 2 1 if $diag > 3
97 9 1 if $diag > 1
101 0 10 unless open $fh, "<", $filename
106 10 25 if ($line_text =~ /\A\s*#\s*SPDX-License-Identifier:\s*([a-zA-Z0-9 ()+.-]+)\s*\Z/)
109 9 1 if $diag > 0
111 10 25 if $found
112 0 25 if $line_number >= $lines
116 10 0 if ($found) { }
120 2 8 $license_expression =~ /$separator/ ? :
123 12 0 $license_spdx->check_license($license) ? :
124 11 1 if $diag > 1
125 12 0 if $check
133 2 1 if $diag > 1