Branch Coverage

blib/lib/Yahoo/Search.pm
Criterion Covered Total %
branch 38 82 46.3


line true false branch
304 0 0 if ($GlobalDefault{'AutoCarp'})
652 28 3 @_ ? :
655 0 31 unless ($ValidateRoutine{$key})
659 0 31 if (not $global and $key eq 'AutoCarp')
663 3 28 unless ($have_val)
669 28 0 if ($valid)
674 0 0 if ($space) { }
689 0 2 if (@_ % 2 != 0)
697 0 4 if ($error) { }
719 0 3 @_ ? :
725 3 0 if ($global or not exists $$class_or_obj{$key}) { }
731 0 3 if ($have_val) { }
734 0 0 if ($error)
738 0 0 if (ref $class_or_obj) { }
747 0 3 if ($error)
798 0 3 if (@_ % 2 != 0)
807 0 0 if ($error)
826 0 3 if (@_ % 2 != 0)
832 0 3 unless (defined $SearchSpace and $Config{$SearchSpace})
840 0 3 if (my $ref = $Config{$SearchSpace}{'Required'})
844 0 0 unless (defined $Args{$arg} and length $Args{$arg})
859 0 3 if (not defined $QueryText or length $QueryText == 0) { }
861 0 0 if ($Args{'Context'} and $Config{$SearchSpace}{'QueryOptional'}) { }
878 0 3 unless (ref $SearchEngine)
897 2 40 if (exists $Args{$key}) { }
0 40 elsif (exists $$SearchEngine{$key}) { }
10 30 elsif (exists $GlobalDefault{$key}) { }
30 0 elsif (exists $Config{$SearchSpace}{'Defaults'}{$key}) { }
909 24 18 if (defined $val)
913 0 24 if ($error)
917 18 6 if (my $param = $ArgToParam{$key}) { }
928 0 3 if (%Args)
936 0 3 unless ($Param{'appid'})
951 0 3 if ($Param{'context'} and $Config{$SearchSpace}{'ContextUrl'})
966 0 3 if ($Param{'license'})
976 0 3 if ($SearchSpace eq 'Local' and not $Param{'location'} || $Param{'zip'} || $Param{'state'} && $Param{'city'} || defined $Param{'latitude'} && defined $Param{'longitude'})
1020 3 0 unless (ref $SearchEngine)
1024 3 0 if (my $Request = $SearchEngine->Request(@_)) { }
1041 3 0 unless ($Response)
1080 0 0 if (@_)
1088 0 0 if ($Config{$SearchSpace} and $Config{$SearchSpace}{'MaxCount'})