Branch Coverage

File:blib/lib/DateTime/Format/Genealogy.pm
Coverage:94.4%

line%coveragebranch
173100TFif (not defined $class) { }
100TFelsif (&Scalar::Util::blessed($class)) { }
179100TF$params ? :
41650TFif $_parse_depth > $MAX_PARSE_DEPTH
421100TFif (not ref $self) { }
100TFelsif (ref $self eq 'HASH') { }
422100TFif (@_)
431100TFunless @_
442100TFunless eval {         do {         validate_strict("schema", \%PARSE_DATETIME_SCHEMA, "input", $params); 1 } }
444100TFif $validate_err
446100TFif (not ref $params->{'date'} and my $date = $params->{'date'})
456100TFif ($date =~ s/^\@#D([A-Z ]+?)@\s*//)
462100TFif ($date =~ /^(?:bef|aft|abt)\s/i)
463100TFunless $quiet
469100TFif ($date =~ /^31\s+Nov/)
481100TFif ($date =~ /^(\d{4})-(\d{2})-(\d{2})$/) { }
100TFelsif ($date =~ /^(.+\d)\s+-\s+(.+\d)$/) { }
48750TFif ($month_idx < 0 or $month_idx > 11)
4880TFunless $quiet
493100TFunless $quiet
497100TFunless $quiet
504100TFif ($date =~ /^bet (.+?) and (.+)/i)
505100TFif (wantarray)
511100TFif (not $strict and $date =~ /^from (.+?) to (.+)/i)
512100TFif (wantarray)
518100TFunless ($date =~ /^\d{3,4}$/)
520100TFif ($strict) { }
521100TFunless ($date =~ /^\d{1,2}\s+[A-Z]{3}\s+\d{3,4}$/i)
522100TFunless $quiet
529100TFif ($date =~ /^(\d{1,2})\s+Ao\x{FB}t\s+(\d{3,4})$/i) { }
100TFelsif ($date =~ /^(\d{1,2})\s+([A-Z]{3,}+)\.?\s+(\d{3,4})$/i) { }
100TFelsif ($date =~ /^(\d{1,2})\-([A-Z]{3})\-(\d{3,4})$/i) { }
536100TFif (my $abbrev = $MONTH_ALIAS{ucfirst lc $2}) { }
100TFelsif (length $2 > 3) { }
541100TFunless $quiet
553100TFif ($date =~ /^\d/ and my $d = $self->_date_parser_cached($date))
556100TFif $date =~ /\s\d{1,2}$/
560100TFunless defined $d->{'canonical'}
569100TFunless ($dfn->success)
570100TFunless $quiet
574100TFif ($rc and $calendar_type ne "DGREGORIAN")
586100TFif (not $date =~ /^(?:Abt|ca?)/i and $date =~ /^[\w\s,]+$/)
58750TFif (my $rc = $dfn->parse_datetime($date))
588100TFif ($dfn->success)
591100TFunless $quiet