Branch Coverage

blib/lib/DateTime/Format/Builder/Parser.pm
Criterion Covered Total %
branch 61 76 80.2


line true false branch
17 4 0 if ($maker and $maker->can('on_fail')) { }
49 0 40 if ref $self->{'maker'}
62 5 47 unless defined $r
111 50 15 if defined $all_params
130 0 192 exists $inverse{$_} ? :
152 0 65 if ref $_[0] eq 'CODE'
153 0 65 if ref $_[0] eq 'HASH'
159 20 240 if $args{$_}
166 16 65 if not defined $from or $from eq 'common'
169 0 65 unless $from
172 0 65 unless my $method = $from->can('create_parser')
183 1 29 unless @_
184 1 28 unless $_[0]
186 27 1 if (@_ == 1)
187 24 3 if ref $_[0] eq 'CODE'
188 2 1 if ref $_[0] eq 'ARRAY'
190 1 3 unless @callbacks
193 1 14 unless ref $_ eq 'CODE'
201 0 14 unless $rv
204 14 0 unless $args{'parsed'}
222 3 37 if $options->{$_}
226 1 39 if exists $options->{'on_fail'}
229 40 0 if exists $options->{'maker'}
239 0 52 unless defined $date
242 9 43 @args ? :
250 7 45 if ($preprocess)
255 9 43 if (%$lengths)
258 8 1 if ($parser)
262 8 0 if defined $dt
269 39 35 if defined $dt
287 0 65 if (ref $spec eq 'CODE') { }
65 0 elsif (ref $spec eq 'HASH') { }
293 12 53 if (exists $spec->{'length'}) { }
298 1 11 ref $spec->{'length'} ? :
323 6 3 if @$parsers == 1
328 5 5 if defined $rv
336 0 40 unless (ref $_[0])
350 20 20 if (ref $_[0] eq 'HASH' or ref $_[0] eq 'CODE') { }