Branch Coverage

blib/lib/SBOM/CycloneDX/License.pm
Criterion Covered Total %
branch 19 36 52.7


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->expression_details;}
117 0 0 if $self->acknowledgement
118 0 0 if $self->bom_ref
119 0 0 if %{$self->licensing->TO_JSON;}
126 148 153 if (defined $spdx_license and not &first(sub { $_ eq $spdx_license; } , @{"SBOM::CycloneDX::Enum"->SPDX_LICENSES;}))
132 247 54 if $spdx_license
133 26 275 if $license_name
135 30 271 if $self->bom_ref
136 30 271 if $self->acknowledgement
137 26 275 if $self->text
138 0 301 if $self->url
139 0 301 if @{$self->properties;}
140 0 301 if %{$self->licensing->TO_JSON;}