Branch Coverage

blib/lib/DateTime/Format/ISO8601/Format.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
17 6 6 if (defined(my $time_zone = delete $args{'time_zone'}))
19 0 6 if (ref $time_zone) { }
28 1 10 if (keys %args)
38 20 20 if ($self->{'time_zone'})
44 24 16 if ($which eq 'date' or $which eq 'datetime')
48 32 8 if ($which eq 'time' or $which eq 'datetime')
50 14 18 if ($dt->nanosecond and not defined $self->{'second_precision'} or $self->{'second_precision'})
54 6 8 if (not defined $self->{'second_precision'}) { }
63 8 24 if ($tz->is_floating) { }
12 12 elsif ($tz->is_utc) { }
69 12 0 $offset_secs >= 0 ? :
76 8 32 if ($which eq 'date') { }
16 16 elsif ($which eq 'time') { }
16 0 elsif ($which eq 'datetime') { }