Branch Coverage

blib/lib/DBIx/Class/InflateColumn/DateTime.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
125 776 9912 if (exists $info->{$key})
128 258 518 unless $info->{$key}
135 0 3132 unless $requested_type or $info->{'data_type'}
141 2 3648 if ($data_type eq 'timestamp with time zone' or $data_type eq 'timestamptz') { }
4 3644 elsif ($data_type eq 'timestamp without time zone') { }
2 3642 elsif ($data_type eq 'smalldatetime') { }
1304 2338 elsif ($data_type =~ /^ (?: date | datetime | timestamp ) $/x) { }
516 1822 elsif ($requested_type) { }
160 4 1824 if ($info->{'extra'})
162 8 8 if (defined $info->{'extra'}{$slot})
165 8 0 unless defined $info->{$slot}
172 4 1824 if (defined $info->{'timezone'}) { }
8 1816 elsif (defined $info->{'time_zone'}) { }
174 0 4 if defined $info->{'time_zone'} and $info->{'time_zone'} ne $info->{'timezone'}
195 0 0 defined $dt ? :
223 0 0 unless $info->{'datetime_undef_if_invalid'}
246 0 0 if defined $info->{'time_zone'}
247 0 0 if defined $info->{'locale'}
255 0 0 if (defined $info->{'time_zone'})
260 0 0 if ref $dt->time_zone eq 'DateTime::TimeZone::Floating' and not $info->{'floating_tz_ok'} and not $ENV{'DBIC_FLOATING_TZ_OK'}
265 0 0 if defined $info->{'locale'}