Branch Coverage

blib/lib/DateTime/Format/Duration/ISO8601.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
14 6 1 unless (exists $args{'on_error'})
24 1 4 unless (eval { do { $dtdur->isa('DateTime::Duration') } })
48 1 1 unless $has_date or $has_time
70 0 5 unless defined $duration_args
72 1 3 if ($duration_args->{'repeats'})
80 2 1 if (exists $duration_args->{'seconds'})
86 1 1 if ($floating)
105 0 6 unless (defined $duration_string)
124 2 4 unless ($duration_string =~ /$regex/)
141 0 4 unless ref $self and ref $self->{'on_error'} eq 'CODE'