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 182 92 if ($opts_hr->{'check_type'} eq 'id') { }
91 1 elsif ($opts_hr->{'check_type'} eq 'name') { }
51 2 180 if ($check_string eq $exception_hr->{'licenseExceptionId'})
55 1 90 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 1804 903 if ($opts_hr->{'check_type'} eq 'id') { }
902 1 elsif ($opts_hr->{'check_type'} eq 'name') { }
83 2 1802 if ($check_string eq $license_hr->{'licenseId'})
87 1 901 if ($check_string eq $license_hr->{'name'})
95 3 3 if (&first(sub { &$check_cb($_); } , @{$$self{'licenses'}{'licenses'};})) { }