blib/lib/Date/Pregnancy.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 27 | 66.6 |
line | l | !l | condition |
---|---|---|---|
82 | 79 | 5 | $params{'method'} || '266days' |
84 | 72 | 12 | $params{'period_cycle_length'} || 28 |
113 | 0 | 55 | $params{'period_cycle_length'} || 28 |
118 | 0 | 55 | $params{'method'} || '40weeks' |
144 | 0 | 14 | $params{'period_cycle_length'} || 28 |
149 | 0 | 14 | $params{'method'} || '40weeks' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
26 | 66 | 1 | 0 | shift() || carp('first_day_of_last_period parameter is mandatory') |
63 | 5 | 1 | 0 | shift() || carp('first_day_of_last_period parameter is mandatory') |
86 | 76 | 8 | 0 | $params{'first_day_of_last_period'} || carp('first_day_of_last_period parameter is mandatory') |
115 | 52 | 3 | 0 | $params{'date'} || 'DateTime'->now |
146 | 10 | 4 | 0 | $params{'date'} || 'DateTime'->now |