Branch Coverage

blib/lib/UUID/Tiny.pm
Criterion Covered Total %
branch 47 66 71.2


line true false branch
272 1 0 defined $SHA1_CALCULATOR ? :
320 5 110022 defined $arg3 ? :
321 5 110022 defined $arg3 ? :
323 10007 100020 if ($v == 1) { }
6 100014 elsif ($v == 3) { }
100006 8 elsif ($v == 4) { }
8 0 elsif ($v == 5) { }
361 10007 0 if ($low < 3967729664) { }
369 10007 0 if ($hi < 239985198) { }
399 2 4 if (ref($name) =~ /^(?:GLOB|IO::)/) { }
0 4 elsif (ref $name) { }
4 0 elsif (defined $name) { }
438 0 8 unless ($SHA1_CALCULATOR)
449 2 6 if (ref($name) =~ /^(?:GLOB|IO::)/) { }
0 6 elsif (ref $name) { }
6 0 elsif (defined $name) { }
521 1 34 if $uuid =~ /$IS_UUID_STRING/
523 0 34 unless length $uuid == 16
555 190055 27 if length $uuid == 16
556 1 26 if $uuid =~ /$IS_UUID_Base64/
560 25 1 if $uuid =~ /$IS_UUID_HEX/
600 1 20004 unless version_of_uuid($uuid) == 1
609 20004 0 if ($low >= 327237632) { }
617 20004 0 if ($hi >= 28450258) { }
646 1 20005 unless version_of_uuid($uuid) == 1
650 20005 0 $v >= 4 ? :
0 20005 $v >= 6 ? :
673 0 9 unless defined $u1 and defined $u2
695 5 430040 if (not defined $Last_Pid or $Last_Pid != $$)
701 5 0 if (not defined $Clk_Seq or $new_clk_seq != $Clk_Seq)
705 0 0 if ($i == 5)
726 0 10007 if (defined $Last_Timestamp and $ts <= $Last_Timestamp)
787 5 75 if length $s <= 0