Branch Coverage

blib/lib/License/SPDX.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
41 2 5 unless (defined $opts_hr)
44 2 5 unless (exists $opts_hr->{'check_type'})
50 156 79 if ($opts_hr->{'check_type'} eq 'id') { }
78 1 elsif ($opts_hr->{'check_type'} eq 'name') { }
51 2 154 if ($check_string eq $exception_hr->{'licenseExceptionId'})
55 1 77 if ($check_string eq $exception_hr->{'name'})
63 3 3 if (&first(sub { &$check_cb($_); } , @{$$self{'exceptions'}{'exceptions'};})) { }
73 2 5 unless (defined $opts_hr)
76 2 5 unless (exists $opts_hr->{'check_type'})
82 1740 871 if ($opts_hr->{'check_type'} eq 'id') { }
870 1 elsif ($opts_hr->{'check_type'} eq 'name') { }
83 2 1738 if ($check_string eq $license_hr->{'licenseId'})
87 1 869 if ($check_string eq $license_hr->{'name'})
95 3 3 if (&first(sub { &$check_cb($_); } , @{$$self{'licenses'}{'licenses'};})) { }