Branch Coverage

blib/lib/SBOM/CycloneDX/License.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
50 0 18 if exists $args->{'id'} and exists $args->{'name'}
89 0 18 if ($self->id and $self->id =~ /(\bWITH\b|\bOR\b|\bAND\b)/i)
95 0 18 if ($self->id and $self->id =~ /^(NOASSERTION|NONE)$/)
105 0 0 if $self->url eq 1
114 0 301 if ($self->expression) { }
116 0 0 if $self->acknowledgement
117 0 0 if $self->bom_ref
124 148 153 if (defined $spdx_license and not &first(sub { $_ eq $spdx_license; } , @{"SBOM::CycloneDX::Enum"->SPDX_LICENSES;}))
130 247 54 if $spdx_license
131 26 275 if $license_name
133 30 271 if $self->bom_ref
134 30 271 if $self->acknowledgement
135 26 275 if $self->text
136 0 301 if $self->url
137 0 301 if @{$self->properties;}
138 0 301 if %{$self->licensing->TO_JSON;}
139 0 301 if @{$self->expression_details;}