Branch Coverage

blib/lib/Vigil/Calendar.pm
Criterion Covered Total %
branch 20 52 38.4


line true false branch
19 0 1 unless (defined $y and defined $m)
25 0 1 unless $y =~ /^\d+$/ and $m =~ /^\d+$/ and $m >= 1 and $m <= 12
27 0 1 $m == 1 ? :
28 0 1 $m == 12 ? :
77 2 0 if $test_year % 4 == 0 and $test_year % 100 != 0 || $test_year % 400 == 0
85 0 1 unless length $yr == 4
86 0 1 unless $mo >= 1 and $mo <= 12
91 0 1 if ($m == 1) { }
0 1 elsif ($m == 2) { }
119 0 3 unless $dom =~ /^\d+$/
120 0 3 unless $dom <= $self->days_in_month($year, $month)
139 0 1 unless $num >= 1 and $num <= 12
140 0 1 $short ? :
149 1 0 if ($hash{$month}) { }
163 1 6 if $test_month == 2 and $self->is_a_leap_year($test_year)
180 0 0 if $week > $self->weeks_in_month
192 0 0 if ($week == 1) { }
197 0 0 if ($position == 1) { }
235 0 0 if ($position == 1) { }
257 0 0 if ($this_day > $self->days_in_month)
268 0 1 if $dom =~ /11$|12$|13$/
269 0 1 if $dom % 10 == 1
270 1 0 if $dom % 10 == 2
271 0 0 if $dom % 10 == 3
277 0 1 unless $y and $m and $d
289 0 0 $pos == 1 ? :