Branch Coverage

blib/lib/Data/UUID/NCName.pm
Criterion Covered Total %
branch 16 36 44.4


line true false branch
21 0 0 unless overload::Method($x, '""') or $x->can('to_string')
516 204 202 if (ref $radix)
524 0 406 unless (defined $p->{'version'})
531 0 406 if ref $uuid
535 0 406 if (length $uuid == 16) { }
544 406 0 if ($uuid =~ /^(?i:urn:uuid:)?[0-9A-Fa-f-]{32,}$/u) { }
0 0 elsif ($uuid =~ m[^[0-9A-Za-z=+/_-]$]u) { }
668 401 0 if (ref $format) { }
0 0 elsif (ref $radix) { }
678 400 1 if defined $p->{'radix'}
687 0 401 unless (defined $p->{'version'})
694 0 401 unless defined $ncname
700 0 401 unless my($version, $content) = $ncname =~ /^([A-Za-z])([0-9A-Za-z_-]{21,})$/u
703 400 1 if ($radix) { }
704 0 400 unless $radix == 32 or $radix == 64
710 1 0 if ($ncname =~ /[_-]/u) { }
0 0 elsif ($len >= 26) { }
0 0 elsif ($len >= 22) { }