Branch Coverage

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


line true false branch
19 4 0 if ($maker and $maker->can('on_fail')) { }
50 0 40 if ref $$self{'maker'}
64 5 47 unless defined $r
117 50 15 if defined $all_params
137 0 192 exists $inverse{$_} ? :
161 0 65 if ref $_[0] eq 'CODE'
162 0 65 if ref $_[0] eq 'HASH'
168 20 240 if $args{$_}
175 11 65 if not defined $from or $from eq 'common'
178 0 65 unless $from
181 0 65 unless my $method = $from->can('create_parser')
193 1 29 unless @_
194 1 28 unless $_[0]
196 27 1 if (@_ == 1)
197 24 3 if ref $_[0] eq 'CODE'
198 2 1 if ref $_[0] eq 'ARRAY'
200 1 3 unless @callbacks
203 1 14 unless ref $_ eq 'CODE'
211 0 14 unless $rv
214 14 0 unless $args{'parsed'}
232 3 37 if $$options{$_}
237 1 39 if exists $$options{'on_fail'}
240 40 0 if exists $$options{'maker'}
250 0 52 unless defined $date
253 9 43 @args ? :
261 7 45 if ($preprocess)
266 9 43 if (%$lengths)
269 8 1 if ($parser)
273 8 0 if defined $dt
280 39 35 if defined $dt
298 0 65 if (ref $spec eq 'CODE') { }
65 0 elsif (ref $spec eq 'HASH') { }
304 12 53 if (exists $$spec{'length'}) { }
308 1 11 ref $$spec{'length'} ? :
334 6 3 if @$parsers == 1
339 5 5 if defined $rv
348 0 40 unless (ref $_[0])
362 20 20 if (ref $_[0] eq 'HASH' or ref $_[0] eq 'CODE') { }