Condition Coverage

blib/lib/Advanced/Config/Date.pm
Criterion Covered Total %
condition 137 396 34.6


and 3 conditions

line !l l&&!r l&&r condition
423 114 0 0 $#lMoY == -1 and $#lMoYs == -1
114 0 0 $#lMoY == -1 and $#lMoYs == -1 and $#lDsuf == -1
0 0 0 $#lMoY == -1 and $#lMoYs == -1 and $#lDsuf == -1 and $#lDoW == -1
0 0 0 $#lMoY == -1 and $#lMoYs == -1 and $#lDsuf == -1 and $#lDoW == -1 and $#lDoWs == -1
465 87 26 1 $wide_flag and not $allow_wide
539 0 0 0 $pe and exists $months{$alt}
0 0 0 $pe and exists $months{$alt} and $months{$alt} == $month_idx
546 0 0 0 $pe and exists $months{$alt}
0 0 0 $pe and exists $months{$alt} and $months{$alt} == $month_idx
563 0 0 0 $pe and exists $days{$alt}
0 0 0 $pe and exists $days{$alt} and $days{$alt} == $day_idx
592 0 0 0 $wide and not $allow_wide
650 210 0 0 $manip_ref and not $lang_ref
661 170 0 0 $manip_ref and $manip_ref->{'Wide'}
662 0 169 1 $lang_ref and $lang_ref->{'Wide'}
729 0 0 0 $old ne $lang and not $lang_ref
731 0 0 0 $lang_ref and $lang_ref->{'Wide'}
0 0 0 $lang_ref and $lang_ref->{'Wide'} and not $allow_wide
813 0 401 1397 $Dsuf_ref and defined $Dsuf_ref->[$day]
926 0 0 0 $in_date =~ /(^|\D)(\d{1,2})($sep)($name)[.]?($sep)(\d{4})(\D|$)/ and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\D)(\d{4})($sep)($name)[.]?($sep)(\d{1,2})(\D|$)/ and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\s)($name)($sep)(\d{1,2})($sep)(\d{4})(\D|$)/ and exists $Months{lcx($2)}
0 0 0 $in_date =~ /(^|\s)($dom)($sep)($name)[.]?($sep)(\d{4})(\D|$)/ and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\s)($dom)($sep)($name)[.]?($sep)(\d{4})(\D|$)/ and exists $Months{lcx($4)} and exists $Days{lcx($2)}
0 0 0 $in_date =~ /(^|\D)(\d{4})($sep)($name)[.]?($sep)($dom)(\s|$)/ and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\D)(\d{4})($sep)($name)[.]?($sep)($dom)(\s|$)/ and exists $Months{lcx($4)} and exists $Days{lcx($6)}
0 0 0 $in_date =~ /(^|\s)($name)($sep)($dom)($sep)(\d{4})(\D|$)/ and exists $Months{lcx($2)}
0 0 0 $in_date =~ /(^|\s)($name)($sep)($dom)($sep)(\d{4})(\D|$)/ and exists $Months{lcx($2)} and exists $Days{lcx($4)}
975 0 0 0 $in_date =~ /($name)[.\s]\s*($dom)[,\s]\s*(\d{4})(\D|$)/ and exists $Months{lcx($1)}
0 0 0 $in_date =~ /($name)[.]?\s+($dom)[,\s]\s*(\d{1,2}:\d{1,2}(:\d{1,2})?)\s+(\d{4})(\D|$)/ and exists $Months{lcx($1)}
1005 0 0 0 $in_date =~ /(^|\D)(\d{1,2})($sep)($name)[.]?($sep)(\d{1,2})([^:\d]|$)/ and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\s)($name)($sep)(\d{1,2})($sep)(\d{1,2})([^:\d]|$)/ and exists $Months{lcx($2)}
0 0 0 $in_date =~ /(^|\s)($name)[.]?($sep)($dom)($sep)(\d{1,2})([^:\d]|$)/ and _tst($sep, $name, $dom, $2, $4, $6)
0 0 0 $in_date =~ /(^|\s)($name)[.]?($sep)($dom)($sep)(\d{1,2})([^:\d]|$)/ and _tst($sep, $name, $dom, $2, $4, $6) and exists $Months{lcx($2)}
0 0 0 $in_date =~ /(^|\s)($name)[.]?($sep)($dom)($sep)(\d{1,2})([^:\d]|$)/ and _tst($sep, $name, $dom, $2, $4, $6) and exists $Months{lcx($2)} and exists $Days{lcx($4)}
0 0 0 $in_date =~ /(^|\s)($dom)($sep)($name)[.]?($sep)(\d{1,2})([^:\d]|$)/ and _tst($sep, $name, $dom, $2, $4, $6)
0 0 0 $in_date =~ /(^|\s)($dom)($sep)($name)[.]?($sep)(\d{1,2})([^:\d]|$)/ and _tst($sep, $name, $dom, $2, $4, $6) and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\s)($dom)($sep)($name)[.]?($sep)(\d{1,2})([^:\d]|$)/ and _tst($sep, $name, $dom, $2, $4, $6) and exists $Months{lcx($4)} and exists $Days{lcx($2)}
0 0 0 $in_date =~ /(^|\D)(\d{1,2})($sep)($name)[.]?($sep)($dom)(\s|$)/ and _tst($sep, $name, $dom, $2, $4, $6)
0 0 0 $in_date =~ /(^|\D)(\d{1,2})($sep)($name)[.]?($sep)($dom)(\s|$)/ and _tst($sep, $name, $dom, $2, $4, $6) and exists $Months{lcx($4)}
0 0 0 $in_date =~ /(^|\D)(\d{1,2})($sep)($name)[.]?($sep)($dom)(\s|$)/ and _tst($sep, $name, $dom, $2, $4, $6) and exists $Months{lcx($4)} and exists $Days{lcx($6)}
1058 0 0 0 $in_date =~ /($name)[.\s]\s*($dom)[,\s]\s*(\d{2})(\D|$)/ and _tst("\\s", $name, $dom, $1, $2, $3)
0 0 0 $in_date =~ /($name)[.\s]\s*($dom)[,\s]\s*(\d{2})(\D|$)/ and _tst("\\s", $name, $dom, $1, $2, $3) and exists $Months{lcx($1)}
1083 0 0 0 $use_date_language_module and not defined $year
1116 0 0 0 $s1 =~ /^\s*$/ and $s2 =~ /^\s*$/
1148 2727 0 106 $month_digits and $dom_digits
1163 2831 0 2 $use_date_language_module and not $out_str
2831 0 2 $use_date_language_module and not $out_str and _date_language_installed()
1205 0 477 464 $allow_2_digit_years and not defined $year
1248 1504 0 206 $in_date =~ /(^|\D)($month_str)[.]?([^\d]*?\D)($dom_num)(\D.*?\D)(\d{4})($|\D)/ and _tst_4_YY($5)
1475 8 21 $in_date =~ /(^|\D)($dom_num)(\D*?)($month_str)[.]?(.*?\D)(\d{4})($|\D)/ and _tst_4_YY($5)
1270 12 927 847 $allow_2_digit_years and not defined $year
1334 0 0 0 $allow_2_digit_years and not defined $year
1391 12 75 19 $allow_2_digit_years and not defined $year
1435 0 0 2817 defined $month and defined $day
1446 0 0 2817 1 <= $day and $day <= $days_in_months[$month]
0 0 0 $month == 2 and $day == 29
1484 34763 0 0 $last_language_edit_flags{'month_period'} && $m =~ s/[.]/\\./g
1522 51418 0 2370 $last_language_edit_flags{'dsuf_period'} && $dom =~ s/[.]/\\./g
1568 0 0 0 defined $years and $years =~ /^\d+$/
1602 31 0 1293 $this_yr < $year and $year - $this_yr >= $global_cutoff_date
1652 0 0 101 defined $id and $id =~ /^[123]$/
1656 47 42 12 $id == 1 and not $skip_iso
89 0 12 $id == 1 and not $skip_iso and $date_str =~ /^(\d{4})(\d{2})(\d{2})$/
1660 54 0 47 $id == 2 and $date_str =~ /^(\d{2})(\d{2})(\d{4})$/
1664 101 0 0 $id == 3 and $date_str =~ /^(\d{2})(\d{2})(\d{4})$/
1669 42 5 54 1 <= $m and $m <= 12
47 0 54 1 <= $m and $m <= 12 and 1 <= $d
5 0 54 1 <= $m and $m <= 12 and 1 <= $d and $d <= 31
1732 0 0 29 defined $id and $id =~ /^[123]$/
1736 3 0 26 $id == 1 and 1 <= $part[1]
3 0 26 $id == 1 and 1 <= $part[1] and $part[1] <= 12
0 0 26 $id == 1 and 1 <= $part[1] and $part[1] <= 12 and 1 <= $part[2]
0 3 23 $id == 1 and 1 <= $part[1] and $part[1] <= 12 and 1 <= $part[2] and $part[2] <= 31
1741 26 0 3 $id == 2 and 1 <= $part[0]
26 0 3 $id == 2 and 1 <= $part[0] and $part[0] <= 12
0 0 3 $id == 2 and 1 <= $part[0] and $part[0] <= 12 and 1 <= $part[1]
0 0 3 $id == 2 and 1 <= $part[0] and $part[0] <= 12 and 1 <= $part[1] and $part[1] <= 31
1746 29 0 0 $id == 3 and 1 <= $part[1]
29 0 0 $id == 3 and 1 <= $part[1] and $part[1] <= 12
0 0 0 $id == 3 and 1 <= $part[1] and $part[1] <= 12 and 1 <= $part[0]
0 0 0 $id == 3 and 1 <= $part[1] and $part[1] <= 12 and 1 <= $part[0] and $part[0] <= 31
1816 5 7 136 $mode != 1 && $mode != 2
1895 19659 199 6642 $year % 4 == 0 && ($year % 100 != 0 || $year % 400 == 0)
1908 0 4 824 defined $date_str and $date_str =~ /^(\d+)-(\d+)-(\d+)$/
1912 0 0 824 1 <= $mon and $mon <= 12
0 0 824 1 <= $mon and $mon <= 12 and 1 <= $day
0 0 824 1 <= $mon and $mon <= 12 and 1 <= $day and $day <= $days_in_months[$mon]
2012 0 92 89 defined $date_str and $date_str =~ /^[-]?\d+$/
2045 0 0 89 defined $target_hyd and $target_hyd =~ /^[-]?\d+$/
2180 0 0 96 defined $year and $adj_years =~ /^[-]?\d+$/
0 0 96 defined $year and $adj_years =~ /^[-]?\d+$/ and $adj_months =~ /^[-]?\d+$/

or 2 conditions

line l !l condition
395 91 23 shift() || 0
446 1031 6106 $_ =~ /[^\x00-\xff]/ || 0
505 0 0 shift() || 0
605 0 0 shift() || 0
710 1824 824 shift() || 0
752 2 230 $issue1_ref->{$k} || $issue2_ref->{$k} || 0
894 0 0 shift() || 0
895 0 0 shift() || 0
1137 2 2831 shift() || 0
1138 2809 24 shift() || 0
1594 1324 0 shift() || 0
1645 42 12 shift() || 0
1809 15 133 shift() || 0
1810 12 136 shift() || 0
1811 0 148 shift() || 0
2131 264 276 shift() || 0
2175 29 67 shift() || 0
2176 78 18 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
264 0 0 28 $date_manip_installed_flag || !$date_language_installed_flag
455 0 10 6096 $_ =~ /[^\x00-\xff]/ or uc($_) =~ /[^\x00-\xff]/
10 0 6096 $_ =~ /[^\x00-\xff]/ or uc($_) =~ /[^\x00-\xff]/ or lc($_) =~ /[^\x00-\xff]/
540 0 0 0 $pi or $pe
547 0 0 0 $pi or $pe
564 0 0 0 $pi or $pe
614 0 0 0 $value =~ /[^\x00-\xff]/ or lc($value) =~ /[^\x00-\xff]/
0 0 0 $value =~ /[^\x00-\xff]/ or lc($value) =~ /[^\x00-\xff]/ or uc($value) =~ /[^\x00-\xff]/
655 208 0 2 $lang_ref or $manip_ref
664 169 0 1 $lang_ref or $manip_ref
712 0 2586 62 not defined $lang or lc $lang eq lc $last_language_edit_flags{'language'}
718 59 0 3 $lang_ref or $manip_ref
743 58 0 1 $MoY_ref or $month_ref
1272 2 180 665 $in_date =~ /(^|\D)($month_str)[.]?(.*?[^:\d])($dom_num)([^:\d])(\d{2})($|[^:\d])/ or $in_date =~ /(^|\D)($month_str)[.]?(.*?[^:\d])($dom_num)([^:\d].*?[^:\d])(\d{2})($|[^:\d])/
1319 0 0 0 $in_date =~ /(^|[^:\d])($month_num)(\D)($dom_str)(.*?\D)(\d{4})($|\D)/ or $in_date =~ /(^|[^:\d])($month_num)(\D.*?\D)($dom_str)(.*?\D)(\d{4})($|\D)/
0 0 0 $in_date =~ /(^|\D)($dom_str)(.*?\D)($month_num)(\D)(\d{4})($|\D)/ or $in_date =~ /(^|\D)($dom_str)(.*?\D)($month_num)(\D.*?\D)(\d{4})($|\D)/
0 0 0 $in_date =~ /(^|\D)(\d{4})(\D)($month_num)(\D)($dom_str)($|\D)/ or $in_date =~ /(^|\D)(\d{4})(\D)($month_num)(\D.*?\D)($dom_str)($|\D)/
0 0 0 $in_date =~ /(^|\D)(\d{4})(\D)($month_num)(\D)($dom_str)($|\D)/ or $in_date =~ /(^|\D)(\d{4})(\D)($month_num)(\D.*?\D)($dom_str)($|\D)/ or $in_date =~ /(^|\D)(\d{4})(\D.*?\D)($month_num)(\D)($dom_str)($|\D)/
0 0 0 $in_date =~ /(^|\D)(\d{4})(\D)($month_num)(\D)($dom_str)($|\D)/ or $in_date =~ /(^|\D)(\d{4})(\D)($month_num)(\D.*?\D)($dom_str)($|\D)/ or $in_date =~ /(^|\D)(\d{4})(\D.*?\D)($month_num)(\D)($dom_str)($|\D)/ or $in_date =~ /(^|\D)(\d{4})(\D.*?\D)($month_num)(\D.*?\D)($dom_str)($|\D)/
1335 0 0 0 $in_date =~ /(^|\D)($month_num)([^:\d])($dom_str)(.*?[^:\d])(\d{2})($|[^:\d])/ or $in_date =~ /(^|\D)($month_num)([^:\d].*?[^:\d])($dom_str)(.*?[^:\d])(\d{2})($|[^:\d])/
0 0 0 $in_date =~ /(^|\D)($dom_str)(.*?[^:\d])($month_num)([^:\d])(\d{2})($|[^:\d])/ or $in_date =~ /(^|\D)($dom_str)(.*?[^:\d])($month_num)([^:\d].*?[^:\d])(\d{2})($|[^:\d])/
0 0 0 $in_date =~ /(^|[^:\d])(\d{2})([^:\d])($month_num)([^:\d])($dom_str)($|\D)/ or $in_date =~ /(^|[^:\d])(\d{2})([^:\d])($month_num)([^:\d].*?[^:\d])($dom_str)($|\D)/
0 0 0 $in_date =~ /(^|[^:\d])(\d{2})([^:\d])($month_num)([^:\d])($dom_str)($|\D)/ or $in_date =~ /(^|[^:\d])(\d{2})([^:\d])($month_num)([^:\d].*?[^:\d])($dom_str)($|\D)/ or $in_date =~ /(^|[^:\d])(\d{2})([^:\d].*?[^:\d])($month_num)([^:\d])($dom_str)($|\D)/
0 0 0 $in_date =~ /(^|[^:\d])(\d{2})([^:\d])($month_num)([^:\d])($dom_str)($|\D)/ or $in_date =~ /(^|[^:\d])(\d{2})([^:\d])($month_num)([^:\d].*?[^:\d])($dom_str)($|\D)/ or $in_date =~ /(^|[^:\d])(\d{2})([^:\d].*?[^:\d])($month_num)([^:\d])($dom_str)($|\D)/ or $in_date =~ /(^|[^:\d])(\d{2})([^:\d].*?[^:\d])($month_num)([^:\d].*?[^:\d])($dom_str)($|\D)/
1527 941 0 49561 $date_str =~ /$month_str.*($dom)/ or $date_str =~ /($dom).*$month_str/
1823 148 0 0 $lang_ref or $manip_ref
1828 0 144 4 not defined $lang or lc $lang eq lc $prev_array_lang
144 2 2 not defined $lang or lc $lang eq lc $prev_array_lang or $numbers