Yahoo/Korea.pm

filter: Statementstmt 77.2% 17 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 77.7% 21 / 27 CC 1 SCAR 1.8
CC
1
Cov
77%
_native_setup_search
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Yahoo/UK.pm ↑ Summary
1 # $Id: Korea.pm,v 2.35 2009/05/02 13:28:41 Martin Exp $
2  
3 =head1 NAME
4  
5 WWW::Search::Yahoo::Korea - class for searching Yahoo! Korea
6  
7 =head1 SYNOPSIS
8  
9 use WWW::Search;
10 my $oSearch = new WWW::Search('Yahoo::Korea');
11 my $sQuery = WWW::Search::escape_query("Tokyo");
12 $oSearch->native_query($sQuery);
13 while (my $oResult = $oSearch->next_result())
14 print $oResult->url, "\n";
15  
16 =head1 DESCRIPTION
17  
18 This class is a Yahoo! Korea specialization of L<WWW::Search>. It
19 handles making and interpreting searches on Yahoo! Korea
20 F<http://kr.yahoo.com>.
21  
22 This class exports no public interface; all interaction should
23 be done through L<WWW::Search> objects.
24  
25 =head1 NOTES
26  
27 =head1 SEE ALSO
28  
29 To make new back-ends, see L<WWW::Search>.
30  
31 =head1 BUGS
32  
33 Please tell the maintainer if you find any!
34  
35 =head1 TESTING
36  
37 There are no tests defined for this module.
38  
39 =head1 AUTHOR
40  
41 C<WWW::Search::Yahoo> is maintained by Martin Thurn
42 (mthurn@cpan.org).
43  
44 =head1 LEGALESE
45  
46 Copyright (C) 1998-2009 Martin 'Kingpin' Thurn
47  
48 THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
49 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
50 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
51  
52 =cut
53  
54 #####################################################################
55  
56 package WWW::Search::Yahoo::Korea;
57  
58 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
59 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
60  
61 1 ▶use WWW::Search::Yahoo;
Subroutine BEGIN: called CC=1 SCAR=0.0
62  
63 1 ▶use base 'WWW::Search::Yahoo';
Subroutine BEGIN: called CC=1 SCAR=0.0
64 our
65 1 $VERSION = do { my @r = (q$Revision: 2.35 $ =~ /\d+/g); sprintf "%d."."%03d" x $#r, @r };
66 1 our $MAINTAINER = 'Martin Thurn <mthurn@cpan.org>';
67  
68 sub _native_setup_search
69 0 ▶ {
Subroutine _native_setup_search: not called CC=1 SCAR=6.9
70 0 my ($self, $sQuery, $rh) = @_;
71 0 $self->{'_options'} = {
72 'p' => $sQuery,
73 };
74 0 $rh->{'search_base_url'} = 'http://kr.search.yahoo.com';
75 0 $rh->{'search_base_path'} = '/bin/search';
76 0 return $self->SUPER::_native_setup_search($sQuery, $rh);
77 } # _native_setup_search
78  
79 1 1;
80  
81 __END__
« Yahoo/UK.pm ↑ Summary