Condition Coverage

blib/lib/URI/PackageURL/Type.pm
Criterion Covered Total %
condition 27 38 71.0


and 3 conditions

line !l l&&!r l&&r condition
150 1619 5 2 defined $components{'qualifiers'}{'checksum'} and ref $components{'qualifiers'}{'checksum'} ne "ARRAY"
229 1614 0 7 defined $components{'qualifiers'}{'checksum'} and ref $components{'qualifiers'}{'checksum'} eq "ARRAY"
270 377 4436 2 defined $components{$component} and $self->component_is_prohibited($component)
274 4436 347 30 not defined $components{$component} and $self->component_is_required($component)
302 4302 138 0 defined $components{'qualifiers'}{$key} and $requirement eq "prohibited"
306 138 4301 1 not defined $components{'qualifiers'}{$key} and $requirement eq "required"
326 16 10 3 not $components{'namespace'} and defined $components{'qualifiers'}{'channel'}
337 0 0 6 defined $components{'namespace'} and defined $components{'name'}
0 6 0 defined $components{'namespace'} and defined $components{'name'} and $components{'namespace'} =~ /\:/
341 0 0 6 defined $components{'namespace'} and defined $components{'name'}
0 3 3 defined $components{'namespace'} and defined $components{'name'} and $components{'name'} =~ /\:/
345 3 0 0 not defined $components{'namespace'} and $components{'name'} =~ /\-/

or 2 conditions

line l !l condition
31 1619 7 _load_definition($type) || {}