Branch Coverage

blib/lib/SBOM/CycloneDX/Component.pm
Criterion Covered Total %
branch 46 72 63.8


line true false branch
139 2 0 if ref $purl eq "URI::PackageURL"
148 0 0 if ref $vers eq "URI::VersionRange"
160 0 392 if $self->mime_type
161 180 212 if $self->bom_ref
162 0 392 if $self->supplier
163 0 392 if $self->manufacturer
164 0 392 if @{$self->authors;}
165 60 332 if $self->author
166 74 318 if $self->publisher
167 74 318 if $self->group
168 352 40 if $self->version
169 0 392 if $self->version_range
170 0 392 if JSON::PP::is_bool($self->is_external)
171 38 354 if $self->description
172 20 372 if $self->scope
173 20 372 if @{$self->hashes;}
174 92 300 if @{$self->licenses;}
175 0 392 if $self->copyright
176 0 392 if @{$self->patent_assertions;}
177 0 392 if $self->cpe
178 20 372 if $self->purl
179 0 392 if @{$self->omnibor_id;}
180 0 392 if @{$self->swhid;}
181 60 332 if $self->swid
182 0 392 if JSON::PP::is_bool($self->modified)
183 0 392 if $self->pedigree
184 0 392 if @{$self->external_references;}
185 0 392 if @{$self->components;}
186 0 392 if $self->evidence
187 0 392 if $self->release_notes
188 0 392 if $self->model_card
189 0 392 if @{$self->data;}
190 0 392 if $self->crypto_properties
191 0 392 if @{$self->properties;}
192 0 392 if @{$self->tags;}
193 0 392 if $self->signature