Condition Coverage

blib/lib/Date/Components.pm
Criterion Covered Total %
condition 207 213 97.1


and 3 conditions

line !l l&&!r l&&r condition
183 663 20 6821 m[^(\d{1,2})/(\d{1,2})/(\-{0,1}\d{1,})$] and is_valid_date($1, $2, $3)
184 94 7 582 /^([a-z]{3,3})\s+([a-z]{3,3})\s+(\d{1,2})\s+\d\d:\d\d:\d\d\s+(\-{0,1}\d{1,})$/i and is_valid_date($2, $3, $4, $1)
185 76 7 18 /^([a-z]{3,})\s+(\d{1,2}),\s+(\-{0,1}\d{1,})$/i and is_valid_date($1, $2, $3)
186 67 3 13 /^(\d{1,2})\s+([a-z]{3,}),\s+(\-{0,1}\d{1,})$/i and is_valid_date($2, $1, $3)
187 58 4 8 /^(\-{0,1}\d{1,})\-(\d{2,2})\-(\d{2,2})$/ and is_valid_date($2, $3, $1)
238 10 6909 623 @_ != 1 and @_ != 3
6919 620 3 @_ != 1 and @_ != 3 and @_ != 4
415 366235 3286 2869 $year_in_01 % 100 == 0 and $year_in_01 % 400 > 0
1057 4 57 68 $date_compare_00 ne '0' and $date_compare_00 ne '-1'
61 68 0 $date_compare_00 ne '0' and $date_compare_00 ne '-1' and $date_compare_00 ne '1'
1275 4 14 22931 $day_of_month_input_00 =~ /^(\d{1,2})$/ and $1 > 0
18 34 22897 $day_of_month_input_00 =~ /^(\d{1,2})$/ and $1 > 0 and $1 < 32
1283 18553 4330 14 $month_num_03 == 4 || $month_num_03 == 6 || $month_num_03 == 9 || $month_num_03 == 11 and $day_of_month_input_00 > 30
1289 21316 710 857 $month_num_03 == 2 and not is_leap_year($year_input_01)
22026 839 18 $month_num_03 == 2 and not is_leap_year($year_input_01) and $day_of_month_input_00 > 28
1295 21316 839 710 $month_num_03 == 2 and is_leap_year($year_input_01)
22155 703 7 $month_num_03 == 2 and is_leap_year($year_input_01) and $day_of_month_input_00 > 29
1453 3 12 104 $four_hundred_year_cycle_01 =~ /^\-{0,1}(\d+)$/ and $1 % $NUMBER_OF_YEAR_PHASES == 0
1509 46 51 1 $date1_year_num_03 == $date2_year_num_03 and $date1_month_num_04 > $date2_month_num_04
46 7 44 $date1_year_num_03 == $date2_year_num_03 and $date1_month_num_04 == $date2_month_num_04
53 19 25 $date1_year_num_03 == $date2_year_num_03 and $date1_month_num_04 == $date2_month_num_04 and $date1_day_of_month_03 > $date2_day_of_month_03
46 7 19 $date1_year_num_03 == $date2_year_num_03 and $date1_month_num_04 == $date2_month_num_04
53 12 7 $date1_year_num_03 == $date2_year_num_03 and $date1_month_num_04 == $date2_month_num_04 and $date1_day_of_month_03 == $date2_day_of_month_03
1731 7453 690 1230 $month_num_06 == 2 and not is_leap_year($year_input_02)
1802 11 3 5 $month_num_07 == 2 and not is_leap_year($year_input_03)
2027 2 1 110 $day_number_in_year_00 =~ /^(\d{1,3})$/ and $1 > 0
3 2 108 $day_number_in_year_00 =~ /^(\d{1,3})$/ and $1 > 0 and $1 < 366
2031 1 1 46 $day_number_in_year_00 =~ /^(\d{1,3})$/ and $1 > 0
2 1 45 $day_number_in_year_00 =~ /^(\d{1,3})$/ and $1 > 0 and $1 < 367
2120 1 1 94 $day_number_in_400_year_cycle_00 =~ /^(\d{1,6})$/ and $1 > 0
2 1 93 $day_number_in_400_year_cycle_00 =~ /^(\d{1,6})$/ and $1 > 0 and $1 <= $NUMBER_OF_DAYS_IN_400_YEAR_CYCLE
2179 1 1 439 @_ > 0 and @_ < 5
2682 2 12 3 $date1_month_num_07 == $date2_month_num_07 and $date1_day_of_month_07 < $date2_day_of_month_07
2703 8 6 4 $date1_is_leap_year eq 'no' and $date2_is_leap_year eq 'yes'
6 4 4 $date1_is_leap_year eq 'yes' and $date2_is_leap_year eq 'no'
2705 2 1 1 $date1_day_of_month_07 == 28 and $date2_day_of_month_07 == 29
2712 2 1 1 $date1_day_of_month_07 == 28 and $date2_day_of_month_07 == 28
2720 1 13 5 $date1_month_num_07 == $date2_month_num_07 and $date1_day_of_month_07 > $date2_day_of_month_07
2741 11 6 5 $date1_is_leap_year eq 'no' and $date2_is_leap_year eq 'yes'
6 4 7 $date1_is_leap_year eq 'yes' and $date2_is_leap_year eq 'no'
2743 3 1 1 $date1_day_of_month_07 == 28 and $date2_day_of_month_07 == 28
2750 5 1 1 $date1_day_of_month_07 == 29 and $date2_day_of_month_07 == 28
2820 6 6 2 $date1_month_num_08 == 2 and $date1_day_of_month_08 == 29
2829 1 2 2 $date1_month_num_08 == 2 and $date1_day_of_month_08 == 28
3003 60 8 8 $day_of_week_16 == 1 and $date_delta_01 > 0
53 8 7 $day_of_week_16 == 5 and $date_delta_01 < 0
46 8 7 $day_of_week_16 == 2 and $date_delta_01 > 0
39 8 7 $day_of_week_16 == 4 and $date_delta_01 < 0
32 8 7 $day_of_week_16 == 3 and $date_delta_01 > 0
32 1 7 $day_of_week_16 == 3 and $date_delta_01 < 0
25 1 7 $day_of_week_16 == 4 and $date_delta_01 > 0
18 1 7 $day_of_week_16 == 2 and $date_delta_01 < 0
11 1 7 $day_of_week_16 == 5 and $date_delta_01 > 0
4 1 7 $day_of_week_16 == 1 and $date_delta_01 < 0

or 3 conditions

line l !l&&r !l&&!r condition
361 13917 4469 3 $num_days_in_year_02 eq '365' or $num_days_in_year_02 eq '366'
1211 17 16 277205 $1 < 1 or $1 > 12
1283 2063 1152 18553 $month_num_03 == 4 || $month_num_03 == 6 || $month_num_03 == 9 || $month_num_03 == 11
1358 6 4 18387 $1 < 1 or $1 > 7
1731 1595 1288 10303 $month_num_06 == 4 or $month_num_06 == 6
2883 652 9651 $month_num_06 == 4 or $month_num_06 == 6 or $month_num_06 == 9
1940 278 9373 $month_num_06 == 4 or $month_num_06 == 6 or $month_num_06 == 9 or $month_num_06 == 11
1802 1 2 22 $month_num_07 == 4 or $month_num_07 == 6
3 2 20 $month_num_07 == 4 or $month_num_07 == 6 or $month_num_07 == 9
4 1 19 $month_num_07 == 4 or $month_num_07 == 6 or $month_num_07 == 9 or $month_num_07 == 11
2185 361 21 57 @_ == 1 or @_ == 2
2388 219 15022 2 @_ == 1 or @_ == 3
3003 8 0 68 $day_of_week_16 == 1 and $date_delta_01 > 0 or $day_of_week_16 == 5 and $date_delta_01 < 0
7 0 54 $day_of_week_16 == 2 and $date_delta_01 > 0 or $day_of_week_16 == 4 and $date_delta_01 < 0
7 0 40 $day_of_week_16 == 3 and $date_delta_01 > 0 or $day_of_week_16 == 3 and $date_delta_01 < 0
7 0 26 $day_of_week_16 == 4 and $date_delta_01 > 0 or $day_of_week_16 == 2 and $date_delta_01 < 0
7 0 12 $day_of_week_16 == 5 and $date_delta_01 > 0 or $day_of_week_16 == 1 and $date_delta_01 < 0