Branch Coverage

File:blib/lib/Date/Cmp.pm
Coverage:89.1%

line%coveragebranch
368100TFif ($complain and ref $complain ne "CODE")
373100TFunless (defined $left and defined $right)
375100TFunless defined $left
376100TFunless defined $right
382100TFif (&blessed($left) and $left->can("date"))
383100TFif (&blessed($right) and $right->can("date"))
384100TFif (ref $left eq "HASH")
385100TFif (ref $right eq "HASH")
389100TFunless (defined $left and defined $right)
391100TFunless defined $left
392100TFunless defined $right
396100TFif (ref $left)
399100TFif (ref $right)
404100TFif $left eq $right
413100TFunless (defined $safe_left)
416100TFunless (defined $safe_right)
427100TFunless ($left =~ /^[A-S0-9]/i)
431100TFunless ($right =~ /^[A-S0-9]/i)
438100TFif ($left =~ /^\d{5,}$/)
441100TFif ($right =~ /^\d{5,}$/)
448100TFif (not ref $left || ref $right and $left =~ /\d{3,4}/ and $right =~ /\d{3,4}/ and not $left =~ /^bet/i and not $left =~ /\-/ and not $right =~ /^bet/i and not $right =~ /^\d{3,4}\-\d{3,4}$/)
453100TFif ($left =~ /(\d{4})/)
45550TFif ($right =~ /(\d{4})/)
457100TFif $lyear != $ryear
464100TFif (not ref $left || ref $right and $left =~ /(\d{3,4})$/ and not $left =~ /^bet/i and not $left =~ /\-/ and not $right =~ /^bet/i and not $right =~ /\-/)
469100TFif ($right =~ /(\d{3,4})$/)
471100TFif $yol != $yor
47550TFunless (ref $left)
484100TFif (not ref $right and $left =~ m[(^|[\s/])\d{4}$] and not $left =~ /^bet/i and not $left =~ /\-/ and not $right =~ /^bet/i and not $right =~ /\-/ and $right =~ m[(^|[\s/,])(\d{4})$])
49350TFif $lyear != $ryear
497100TFif ($left =~ /^(bef|aft)/i)
498100TFif ($right =~ /^\d+$/)
50050TFif ($left =~ /\s(\d+)$/)
50150TFif $1 < $right
50450TFif ($right =~ /(\d{4})/)
50750TFif ($left =~ /^bef/i and $left =~ /(\d{4})/)
5080TFif $1 < $ryear
517100TFif ($left =~ /^(Abt|ca?)\.?\s+(.+)/i) { }
100TFelsif ($left =~ /(.+?)\s?\?$/) { }
100TFelsif ($left =~ m[/] and $left =~ m[^[a-z/]+\s+(.+)]i) { }
528100TFif ($left =~ /^\d{3,4}/ and not $left =~ /\-/ and $right =~ /^\d{3,4}/ and not $right =~ /\-/)
53350TFif $start != $end
540100TFif ($left =~ /(\d{3,4})/)
542100TFif (not $left =~ /^bet/i and $right =~ /^bet/)
54350TFif ($right =~ /(\d{3,4})/)
54550TFif $start != $end
551100TFif ($left =~ /^(\d{3,4})\sor\s(\d{3,4})$/) { }
100TFelsif ($left =~ /^(\d{3,4})\-(\d{3,4})$/ or $left =~ /^Bet (\d{3,4})\sand\s(\d{3,4})$/i) { }
100TFelsif (not $left =~ /^\d{3,4}$/) { }
553100TFif $complain and $start == $end
562100TFif ($from == $to) { }
100TFelsif ($from > $to) { }
564100TFif $complain
56950TFif $complain
574100TFunless ($right =~ /^\d{4}$/)
576100TFunless (defined $r[0])
577100TFif ($right =~ m[[\s/](\d{4})$])
581100TF$year > $to ? :
100TF$year < $from ? :
594100TFif $right < $from
595100TFif $right > $to
601100TFunless ($left =~ /^\d{4}\-\d{2}\-\d{2}$/)
603100TFif (not $left =~ /[a-z]/i or $left =~ /[a-z]$/)
614100TFunless (defined $rc)
62350TFunless (ref $right)
625100TFif ($right =~ /^bef/i)
626100TFif ($left =~ /^\d+$/)
62850TFif ($right =~ /\s(\d+)$/)
638100TFif ($right =~ /^(Abt|ca?)\.?\s+(.+)/i) { }
100TFelsif ($right =~ /(.+?)\s?\?$/) { }
100TFelsif ($right =~ m[/] and $right =~ m[^[a-z/]+\s+(.+)]i) { }
647100TFif ($right =~ /^\d{3,4}$/)
648100TFref $left ? :
652100TFif ($right =~ /^(\d{3,4})\-(\d{3,4})$/ or $right =~ /^Bet (\d{3,4})\sand\s(\d{3,4})$/i)
657100TFif ($from == $to) { }
100TFelsif ($from > $to) { }
659100TFif $complain
662100TFref $left ? :
671100TFif (ref $left)
674100TFif $left < $from
675100TFif $left > $to
68250TFif ($left =~ /(\d{3,4})/)
684100TFif ($right =~ /(\d{3,4})/)
686100TFif $start != $end
692100TFunless (defined $r[0])
693100TFif ($right =~ m[[\s/](\d{4})$])
696100TFif (ref $left) { }
69750TFif $left->year != $year
69950TFif $left != $year
711100TFif not ref $left and ref $right
71250TFif ref $left and not ref $right
73050TFunless defined $val