Branch Coverage

blib/lib/DateTimeX/Period.pm
Criterion Covered Total %
branch 38 42 90.4


line true false branch
149 20 39 if ($period eq '10 minutes') { }
8 31 elsif ($period eq 'hour') { }
13 18 elsif ($period eq 'day') { }
9 9 elsif ($period eq 'week') { }
7 2 elsif ($period eq 'month') { }
237 4 20 if ($period eq '10 minutes') { }
5 15 elsif ($period eq 'hour') { }
8 7 elsif ($period eq 'day') { }
4 3 elsif ($period eq 'week') { }
3 0 elsif ($period eq 'month') { }
245 1 3 if ($dt->hour + $dt->minute + $dt->second > 0)
256 1 2 if ($dt->hour + $dt->minute + $dt->second > 0)
267 1 1 if ($dt->hour + $dt->minute + $dt->second > 0)
302 1 5 unless exists $period_labels{$key}
313 2 5 if ($period eq 'day') { }
3 2 elsif ($period eq 'week') { }
2 0 elsif ($period eq 'month') { }
344 0 6 if ($period eq 'hour') { }
4 2 elsif ($period eq 'day') { }
1 1 elsif ($period eq 'week') { }
1 0 elsif ($period eq 'month') { }