Branch Coverage

blib/lib/Jifty/DBI/Filter/DateTime.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
45 9 3 if (not $self->_formatter or $self->_formatter->pattern ne $self->_strptime)
68 3 12 unless defined $$value_ref
70 3 9 unless (UNIVERSAL::isa($$value_ref, 'DateTime'))
71 0 3 unless ($$value_ref =~ /^\d{4}[ -]?\d{2}[ -]?\d{2}/)
77 0 9 unless $$value_ref
78 9 0 if (my $tz = $self->_time_zone)
97 4 12 unless defined $$value_ref
113 0 12 if $str =~ /\d\.\d+[+-]\d\d$/
118 0 12 if ($@)
123 0 12 unless $dt
126 12 0 if $tz
128 3 9 if ($self->date_only)