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 112 if $self->mime_type
161 54 58 if $self->bom_ref
162 0 112 if $self->supplier
163 0 112 if $self->manufacturer
164 0 112 if @{$self->authors;}
165 18 94 if $self->author
166 18 94 if $self->publisher
167 18 94 if $self->group
168 100 12 if $self->version
169 0 112 if $self->version_range
170 0 112 if JSON::PP::is_bool($self->is_external)
171 10 102 if $self->description
172 6 106 if $self->scope
173 6 106 if @{$self->hashes;}
174 22 90 if @{$self->licenses;}
175 0 112 if $self->copyright
176 0 112 if @{$self->patent_assertions;}
177 0 112 if $self->cpe
178 6 106 if $self->purl
179 0 112 if @{$self->omnibor_id;}
180 0 112 if @{$self->swhid;}
181 18 94 if $self->swid
182 0 112 if JSON::PP::is_bool($self->modified)
183 0 112 if $self->pedigree
184 0 112 if @{$self->external_references;}
185 0 112 if @{$self->components;}
186 0 112 if $self->evidence
187 0 112 if $self->release_notes
188 0 112 if $self->model_card
189 0 112 if @{$self->data;}
190 0 112 if $self->crypto_properties
191 0 112 if @{$self->properties;}
192 0 112 if @{$self->tags;}
193 0 112 if $self->signature