Condition Coverage

lib/Data/Identifier/Util.pm
Criterion Covered Total %
condition 13 83 15.6


and 3 conditions

line !l l&&!r l&&r condition
301 0 0 6 defined $v and defined $pack_template
312 0 6 0 defined $min and $v < $min
0 6 0 defined $max and $v > $max
373 0 0 6 defined $type and defined $pack_template
468 0 0 0 defined(my Data::Identifier $generator = $identifier->generator("default", undef)) and defined(my $req = $identifier->request("default", undef))
469 0 0 0 $generator->eq("d74f8c35-bcb8-465c-9a77-01010e8ed25c") and $req =~ /^[Uu]\+([0-9a-fA-F]{4,6})$/u
666 0 0 34 ref $args[0] and eval { do { $args[0]->isa(__PACKAGE__) } }

or 2 conditions

line l !l condition
260 9 0 $template //= ""
411 0 2 $1 || '0'
480 0 0 $identifier->as($ent->[1], "no_defaults", 1, "default", undef) // (next)
494 0 0 delete $opts{'exponentas'} // "int"
541 0 0 $request->{'10'} //= 0
547 0 0 delete $request->{$key} // 0
552 0 0 $request->{$prime_element} //= 0
558 0 0 delete $request->{$key} // 0
695 16 0 $id->{'id_cache'} //= {}
706 4 0 $identifier->{'id_cache'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
283 0 0 0 $v < 0 or $v > 4095
312 0 0 6 defined $min and $v < $min or defined $max and $v > $max
536 0 0 0 $_component_to_name{$_->{'component'}->uuid} // croak('Unknown base unit: ' . $_->{'component'}->uuid)
540 0 0 0 $_si_prefix{$prefix} // croak('Bad prefix: ' . $prefix)
584 0 0 0 $_number_units{$key} // $_base_units{$key}{'id'}
604 0 0 0 $opts{'namespace'} //= $_wk{'dunit_ns'}
0 0 0 $opts{'generator'} //= $_wk{'dunit_gen'}
640 0 0 0 $identifier->{'validate'} //= $validate
644 0 0 0 $identifier->{'namespace'} //= $self->register_namespace($namespace)
650 0 0 0 $null->{'id_cache'}{$uuid} //= $null_value
696 0 16 0 $id->{'id_cache'}{$_logical} //= $key
708 0 4 0 $id_cache->{'f87a38cb-fd13-4e15-866c-e49901adbec5'} //= $sid
709 0 4 0 $id_cache->{'039e0bb7-5dd3-40ee-a98c-596ff6cce405'} //= $sni
731 0 0 0 $identifier->{'displayname'} //= $displayname