Branch Coverage

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


line true false branch
38 13 2 unless ref $self
39 2 13 defined $$self{'asn1'} ? :
45 9 6 if ($date =~ s/Z$//) { }
5 1 elsif ($date =~ s/([+-]([01]\d|2[0-3])[0-5]\d)$//) { }
1 0 elsif ($asn1) { }
63 3 12 if ($date =~ s/[.,](\d+)//)
67 0 15 unless my $format = $valid_formats{length $date}
76 3 12 if (defined $fraction)
78 1 2 if (exists $p{'second'}) { }
1 1 elsif (exists $p{'minute'}) { }
86 1 0 if ($fraction)
95 1 0 if ($fraction)
99 1 0 if ($fraction)
113 14 2 unless ref $self
114 2 14 defined $$self{'asn1'} ? :
115 2 14 defined $$self{'offset'} ? :
119 0 16 if $tz->is_floating and not $asn1
121 14 2 unless ($offset)
123 4 10 unless ($tz->is_utc or $tz->is_floating)
135 3 13 if $dt->nanosecond
137 1 15 if $tz->is_floating
139 14 1 if $tz->is_utc