Condition Coverage

blib/lib/Data/FormValidator/Constraints/DateTime.pm
Criterion Covered Total %
condition 74 108 68.5


and 3 conditions

line !l l&&!r l&&r condition
166 0 0 8 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
202 150 2 166 $dt and $formatter->can('format_datetime')
236 0 0 12 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
253 33 22 75 $value and exists $$data{$value}
272 3 3 38 defined $year and $year ne ''
6 3 35 defined $year and $year ne '' and defined $month
6 3 32 defined $year and $year ne '' and defined $month and $month ne ''
6 3 29 defined $year and $year ne '' and defined $month and $month ne '' and defined $day
6 3 26 defined $year and $year ne '' and defined $month and $month ne '' and defined $day and $day ne ''
328 0 0 3 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
344 0 0 9 $dt and $dt_target
0 3 6 $dt and $dt_target and $dt <= $dt_target
381 0 0 3 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
397 0 0 9 $dt and $dt_target
0 3 6 $dt and $dt_target and $dt >= $dt_target
433 0 0 3 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
451 0 2 4 $dt and $dt <= 'DateTime'->today
485 0 0 3 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
503 0 2 4 $dt and $dt >= 'DateTime'->today
553 0 0 6 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
574 16 4 6 $dt and $dt_target
20 3 3 $dt and $dt_target and $dt < $dt_target
622 0 0 6 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
643 16 4 6 $dt and $dt_target
20 3 3 $dt and $dt_target and $dt > $dt_target
695 0 0 8 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
720 23 6 15 $dt and $dt_target1
29 6 9 $dt and $dt_target1 and $dt_target2
12 3 6 $dt and $dt_target1 and $dt_target2 and $dt > $dt_target1
9 3 3 $dt and $dt_target1 and $dt_target2 and $dt > $dt_target1 and $dt < $dt_target2
753 0 0 9 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
804 0 0 9 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
854 0 0 8 blessed $dfv and $dfv->isa('Data::FormValidator::Results')
914 0 0 9 blessed $dfv and $dfv->isa('Data::FormValidator::Results')

or 2 conditions

line l !l condition
278 3 23 $hour ||= 0
279 3 23 $min ||= 0
280 3 23 $sec ||= 0