Branch Coverage

blib/lib/Time/Strptime/Format.pm
Criterion Covered Total %
branch 48 60 80.0


line true false branch
113 23 0 unless $options->{'handler'}
158 7 144 $t =~ s/^localed_// ? :
190 0 23 if $@
198 0 127 if $type eq 'UNSUPPORTED'
201 69 58 if (ref $val)
202 10 59 if ref $val eq 'CODE'
203 69 0 if ref $val eq 'ARRAY'
207 14 113 if ($type eq 'extend') { }
217 4 109 if $type eq 'SKIP'
218 4 105 if $type eq 'char'
228 0 105 if ($type eq 'timezone') { }
7 98 elsif ($type =~ /^localed_([a-z]+)$/) { }
246 0 23 $self->{'strict'} ? :
250 13 10 $types_table->{'second'} ? :
251 13 10 $types_table->{'minute'} ? :
253 3 20 if ($types_table->{'epoch'}) { }
16 4 elsif ($types_table->{'year'} and $types_table->{'month'} and $types_table->{'day'}) { }
1 3 elsif ($types_table->{'year'} and $types_table->{'month'}) { }
3 0 elsif ($types_table->{'year'} and $types_table->{'day365'}) { }
280 13 10 $types_table->{'second'} ? :
281 13 10 $types_table->{'minute'} ? :
285 20 3 if (defined $fixed_offset) { }
3 0 elsif ($types_table->{'offset'}) { }
286 0 20 if ($fixed_offset != 0)
303 0 3 unless (defined $fixed_offset or $types_table->{'epoch'})
315 18 28 if ($types_table->{'hour24'}) { }
8 20 elsif ($types_table->{'hour12'} and $types_table->{'pm'}) { }
328 3 20 if $types_table->{'offset'}
329 0 20 if $types_table->{'timezone'}
330 0 20 unless exists $FIXED_OFFSET{$self->{'time_zone'}->name}