Branch Coverage

File:blib/lib/Genealogy/Obituary/Lookup.pm
Coverage:90.0%

line%coveragebranch
247100TFif (scalar @_ == 0 and not ref $class_in and defined $class_in and -d $class_in) { }
100TFelsif (scalar @_ == 1 and not ref $_[0]) { }
100TFelsif (my $params = Params::Get::get_params(undef, @_)) { }
258100TFif (not defined $class_in) { }
100TFelsif (&Scalar::Util::blessed($class_in)) { }
260100TFif (%args)
271100TFif (defined $args{"logger"})
272100TFunless (&Scalar::Util::blessed($args{"logger"}) and $args{"logger"}->can("info") and $args{"logger"}->can("warn") and $args{"logger"}->can("error"))
288100TFunless (defined $args{"directory"})
289100TFunless (exists $_dir_cache{$class_in})
29250TFif (defined $info)
29550TFunless -d $derived
30050TFif defined $_dir_cache{$class_in}
306100TFif (defined $args{"directory"} and not ref $args{"directory"})
308100TFif (index($args{"directory"}, "\0") != -1)
31150TFif $args{"logger"}
320100TFif (defined $args{"directory"} and not -d $args{'directory'} && -r $args{'directory'})
32350TFif $args{"logger"}
526100TFunless &Scalar::Util::blessed($self)
531100TFunless @_
557100TFunless (defined $$params{"last"} and length $$params{"last"} > 0)
55950TFif $$self{"logger"}
570100TFunless (defined $$self{"obituaries"})
57250TFif $$self{"logger"}
576100TFif (wantarray)
577100TFunless my $obituaries = $$self{"obituaries"}->selectall_hashref($params)
583100TFunless defined $obit
597100TFunless my $obit = $$self{"obituaries"}->fetchrow_hashref($params)
616100TFunless (&CORE::GLOBAL::caller())[0] eq __PACKAGE__
623100TFunless defined $page
625100TFunless defined $source
630100TFif ($source eq 'M' or $source eq 'F') { }
100TFelsif ($source eq 'L') { }
635100TFif defined $$obit{"newspaper"} and $$obit{"newspaper"} =~ m[\Ahttps?://]
636100TFif $page =~ m[\Ahttps?://]