Branch Coverage

blib/lib/Date/Pregnancy.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
28 1 66 unless ref $dt
39 1 8 unless (ref $dt)
44 1 7 unless ($period_cycle_length)
50 1 6 if ($period_cycle_length > 28) { }
6 0 elsif ($period_cycle_length < 29) { }
65 1 5 unless ref $dt
88 8 76 unless ref $first_day_of_last_period
93 1 75 unless (grep {/$method/;} @methods)
99 6 69 if ($method eq '266days')
105 0 75 if $@
121 0 55 if ($params{'birthday'}) { }
130 3 52 unless ref $birthday
152 0 14 if ($params{'birthday'}) { }
161 3 11 unless ref $birthday