Branch Coverage

blib/lib/Time/R.pm
Criterion Covered Total %
branch 69 140 49.2


line true false branch
20 0 4 if @_ < 2
0 4 if @_ > 2 and (@_ - 2) % 2
1 3 exists ${__rest}{'years'} ? :
3 1 exists ${__rest}{'months'} ? :
0 4 exists ${__rest}{'weeks'} ? :
0 4 exists ${__rest}{'days'} ? :
0 4 exists ${__rest}{'hours'} ? :
0 4 exists ${__rest}{'minutes'} ? :
0 4 exists ${__rest}{'seconds'} ? :
0 4 if keys %{__rest}
34 0 4 if @_ < 2
0 4 if @_ > 2
35 0 4 unless ref $new_start and $new_start->isa('Time::C')
42 0 37 if @_ < 1
0 37 if @_ > 2
46 0 0 if defined $new_start
50 0 37 if defined $new_start
56 0 59 if @_ < 1
0 59 if @_ > 2
62 0 29 if defined $new_current
66 0 59 if defined $new_current
72 0 50 if @_ < 1
0 50 if @_ > 2
76 0 1 if defined $new_end
80 0 50 if defined $new_end
86 0 44 if @_ < 1
0 44 if @_ > 2
91 0 44 if (defined $new_years)
97 0 191 if @_ < 1
0 191 if @_ > 2
102 0 191 if (defined $new_months)
108 0 29 if @_ < 1
0 29 if @_ > 2
113 0 29 if (defined $new_weeks)
119 0 29 if @_ < 1
0 29 if @_ > 2
124 0 29 if (defined $new_days)
130 0 29 if @_ < 1
0 29 if @_ > 2
135 0 29 if (defined $new_hours)
141 0 29 if @_ < 1
0 29 if @_ > 2
146 0 29 if (defined $new_minutes)
152 0 29 if @_ < 1
0 29 if @_ > 2
157 0 29 if (defined $new_seconds)
164 0 29 if @_ < 1
0 29 if @_ > 1
168 5 24 if ($r->years)
173 10 5 if $y->epoch <= $c->epoch
178 24 5 if ($r->months)
183 138 24 if $m->epoch <= $c->epoch
188 0 29 if ($r->weeks)
189 0 29 if ($r->days)
190 0 29 if ($r->hours)
191 0 29 if ($r->minutes)
192 0 29 if ($r->seconds)
193 3 26 if defined $r->end and $n->epoch > $r->end->epoch
200 0 0 if @_ < 1
0 0 if @_ > 1
204 0 0 unless defined $n
209 0 0 if @_ < 1
0 0 if @_ > 1
216 0 1 if @_ < 2
0 1 if @_ > 2
217 0 1 unless ref $end and $end->isa('Time::C')
218 0 1 if defined $r->end and $r->end->epoch < $end->epoch
222 1 0 if @results
228 0 0 if @_ < 1
0 0 if @_ > 1