Condition Coverage

lib/Data/Identifier/Generate.pm
Criterion Covered Total %
condition 69 173 39.8


and 3 conditions

line !l l&&!r l&&r condition
137 0 0 3 defined $request and length $request
222 0 9 0 $year and $year < 1583 || $year > 9999
223 1 8 0 $month and $month < 1 || $month > 12
224 2 7 0 $day and $day < 1 || $day > 31
230 2 0 7 $precision eq "day" and $day
1 0 1 $precision eq "month" and $month
0 0 1 $precision eq "year" and $year
267 0 0 8 defined $name and length $name
389 23 0 105 defined(my $style = $opts{'style'}) and defined(my $request = $opts{'request'})
546 0 0 0 defined $raw and length $raw == 16

or 2 conditions

line l !l condition
121 0 66 $opts{'icontext'} //= "\x{2115}"
123 0 1 $opts{'icontext'} //= "\x{2124}"
201 6 3 $year // ""
219 24 3 $entry // 0
229 1 1 (($opts{'precision'} // ($day ? "day" : undef)) // ($month ? "month" : undef)) // "year"
274 0 8 $identifier->{'id_cache'} //= {}
299 0 8 $identifier->{'id_cache'} //= {}
382 93 27 $_generators{$generator->ise} // {}
479 0 1 $_generators{$generator->ise} //= {}
482 2 1 $opts{$key} // (next)

or 3 conditions

line l !l&&r !l&&!r condition
116 0 70 0 $opts{'displayname'} //= $request
153 0 0 0 $unicode_cp < 0 or $unicode_cp > 127
161 0 0 3 $unicode_cp < 0 or $unicode_cp > 1114111
165 0 0 3 $unicode_cp == 65532 or $unicode_cp == 65533
0 0 3 $unicode_cp == 65532 or $unicode_cp == 65533 or $unicode_cp == 65279
0 0 3 $unicode_cp == 65532 or $unicode_cp == 65533 or $unicode_cp == 65279 or $unicode_cp == 65534
169 0 3 0 $opts{'displayname'} //= $unicode_cp_str
202 0 0 3 $request eq "now" or $request eq "today"
222 0 0 9 $year < 1583 || $year > 9999
223 0 0 8 $month < 1 || $month > 12
224 0 0 7 $day < 1 || $day > 31
229 0 7 2 $opts{'precision'} // ($day ? "day" : undef)
7 1 1 ($opts{'precision'} // ($day ? "day" : undef)) // ($month ? "month" : undef)
241 0 9 0 $opts{'input'} //= $request
243 0 9 0 $opts{'displayname'} //= $request
271 0 8 0 $opts{'displayname'} //= $name
275 0 8 0 $identifier->{'id_cache'}{'d0a4c6e2-ce2f-4d4c-b079-60065ac681f1'} //= $req
284 8 0 0 $_multiplicity_prefix{$subtype} // croak('Invalid subtype: ' . $subtype)
288 2 6 0 $request eq 0 or $request =~ /^[1-9][0-9]*$/u
294 0 8 0 $opts{'displayname'} //= $_multiplicity_names{$request}
295 8 0 0 $opts{'displayname'} //= $request
300 0 8 0 $identifier->{'id_cache'}{"Data::Identifier"->WK_OID} //= $oid
319 0 0 0 $_gte_simple_profiles{$profile} // $profile
358 0 0 0 $opts{'namespace'} //= $profile->{'namespace'}
359 0 0 0 $opts{'displayname'} //= $normal
386 0 0 0 $opts{'namespace'} //= $type->namespace
392 0 67 3 $opts{'input'} //= $request
404 0 9 0 $opts{'input'} //= lc $input
405 8 1 0 $opts{'displayname'} //= $name
408 0 21 0 $opts{'input'} //= &encode("UTF-8", $request)
409 21 0 0 $opts{'displayname'} //= $request
413 0 0 0 $opts{'input'} //= $identifier->uuid
414 0 0 0 $opts{'displayname'} //= $identifier->{'displayname'}
416 0 0 0 $opts{'input'} //= $request
436 0 0 0 $opts{'input'} //= join(",", sort(keys %uuids))
445 0 0 0 $opts{'displaycolour'} //= "Data::URIID::Colour"->new("rgb", $request)
451 0 5 0 $opts{'input'} //= $req
468 2 196 5 $tag->{$key} //= $opts{$key}
470 1 118 8 $tag->{'generator'} //= $generator
484 0 2 0 $g->{$key} //= $v
519 0 0 0 $opts{'sources'} // (state $default_sources = ["Crypt::URandom", "UUID4::Tiny", "Math::Random::Secure", "UUID::URandom", "UUID::Tiny::Patch::UseMRS"])