Branch Coverage

blib/lib/Fedora/RPM/Spec/License.pm
Criterion Covered Total %
branch 23 24 95.8


line true false branch
79 1 2 unless ($self->{'result'}{'status'})
91 2 9 unless ($self->{'result'}{'status'})
101 1 6 unless ($self->{'result'}{'status'})
117 11 11 if ($fedora_license_string =~ /AND/ms or $fedora_license_string =~ /OR/ms or $fedora_license_string =~ /\s+WITH\s+/ms) { }
5 6 elsif ($fedora_license_string =~ /and/ms or $fedora_license_string =~ /or/ms) { }
129 5 1 if ($self->{'spdx'}->check_license($fedora_license_string)) { }
181 3 13 if ($Fedora::RPM::Spec::License::EVAL_ERROR)
191 55 18 if (ref $value eq '') { }
18 0 elsif (ref $value eq 'ARRAY') { }
192 2 53 if ($value eq "with")
195 37 12 if ($value ne "||" and $value ne "&&" and $value ne "with")
196 2 35 if ($self->{'_exception'}) { }