| blib/lib/Vigil/Calendar.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 25 | 59 | 42.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 19 | 0 | 0 | 1 | defined $y and defined $m |
| 25 | 0 | 0 | 1 | $y =~ /^\d+$/ and $m =~ /^\d+$/ |
| 0 | 0 | 1 | $y =~ /^\d+$/ and $m =~ /^\d+$/ and $m >= 1 | |
| 0 | 0 | 1 | $y =~ /^\d+$/ and $m =~ /^\d+$/ and $m >= 1 and $m <= 12 | |
| 77 | 3 | 2 | 0 | $test_year % 4 == 0 and $test_year % 100 != 0 || $test_year % 400 == 0 |
| 86 | 0 | 0 | 1 | $mo >= 1 and $mo <= 12 |
| 139 | 0 | 0 | 1 | $num >= 1 and $num <= 12 |
| 163 | 4 | 2 | 1 | $test_month == 2 and $self->is_a_leap_year($test_year) |
| 277 | 0 | 0 | 1 | $y and $m |
| 0 | 0 | 1 | $y and $m and $d |
| line | l | !l | condition |
|---|---|---|---|
| 116 | 3 | 0 | $dom //= 1 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 76 | 5 | 0 | 0 | $test_year ||= $self->{'_year'} |
| 77 | 2 | 0 | 0 | $test_year % 100 != 0 || $test_year % 400 == 0 |
| 83 | 1 | 0 | 0 | $month // $self->{'_month'} |
| 84 | 1 | 0 | 0 | $year // $self->{'_year'} |
| 117 | 2 | 1 | 0 | $month //= $self->{'_month'} |
| 118 | 2 | 1 | 0 | $year //= $self->{'_year'} |
| 138 | 1 | 0 | 0 | $num //= $self->{'_month'} |
| 160 | 7 | 0 | 0 | shift() || $self->{'_year'} |
| 161 | 7 | 0 | 0 | shift() || $self->{'_month'} |