Branch Coverage

blib/lib/DBIx/Class/InflateColumn/DateTime.pm
Criterion Covered Total %
branch 20 36 55.5


line true false branch
118 977 15365 if (exists $info->{$key})
121 325 652 unless $info->{$key}
128 0 4905 unless $requested_type or $info->{'data_type'}
134 2 5555 if ($data_type eq 'timestamp with time zone' or $data_type eq 'timestamptz') { }
4 5551 elsif ($data_type eq 'timestamp without time zone') { }
2 5549 elsif ($data_type eq 'smalldatetime') { }
2285 3264 elsif ($data_type =~ /^ (?: date | datetime | timestamp ) $/x) { }
650 2614 elsif ($requested_type) { }
153 4 2939 if ($info->{'extra'})
155 8 4 if (defined $info->{'extra'}{$slot})
158 8 0 unless defined $info->{$slot}
177 0 0 defined $dt ? :
205 0 0 unless $info->{'datetime_undef_if_invalid'}
227 0 0 if defined $info->{'timezone'}
228 0 0 if defined $info->{'locale'}
236 0 0 if (defined $info->{'timezone'})
241 0 0 if ref $dt->time_zone eq 'DateTime::TimeZone::Floating' and not $info->{'floating_tz_ok'} and not $ENV{'DBIC_FLOATING_TZ_OK'}
246 0 0 if defined $info->{'locale'}