Branch Coverage

blib/lib/DateTime/Format/LDAP.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
40 13 2 unless ref $self
41 2 13 defined $$self{'asn1'} ? :
47 9 6 if ($date =~ s/Z$//) { }
5 1 elsif ($date =~ s/([+-]([01]\d|2[0-3])[0-5]\d)$//) { }
1 0 elsif ($asn1) { }
65 3 12 if ($date =~ s/[.,](\d+)//)
69 0 15 unless my $format = $valid_formats{length $date}
78 3 12 if (defined $fraction)
80 1 2 if (exists $p{'second'}) { }
1 1 elsif (exists $p{'minute'}) { }
88 1 0 if ($fraction)
97 1 0 if ($fraction)
101 1 0 if ($fraction)
115 14 2 unless ref $self
116 2 14 defined $$self{'asn1'} ? :
117 2 14 defined $$self{'offset'} ? :
121 0 16 if $tz->is_floating and not $asn1
123 14 2 unless ($offset)
125 4 10 unless ($tz->is_utc or $tz->is_floating)
137 3 13 if $dt->nanosecond
139 1 15 if $tz->is_floating
141 14 1 if $tz->is_utc