Debian Codegraph @

ebay/t/coverage.t

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1
2 # $Id: coverage.t,v 1.4 2006-01-08 03:27:13 Daddy Exp $
3
4 use ExtUtils::testlib;
5 use Test::More no_plan;
6
7 use IO::Capture::Stderr;
8 my $oICE = IO::Capture::Stderr->new;
9
10 BEGIN { use_ok('WWW::Search') };
11 BEGIN { use_ok('WWW::Search::Ebay') };
12
13 my $iDebug;
14 my $iDump = 0;
15
16 my $o = new WWW::Search('Ebay');
17 $o->{_debug} = 1;
18 $oICE->start;
19 # Trigger all the options-list handling:
20 $o->native_query('junk',
21 {
22 search_debug => 1,
23 search_parse_debug => 1,
24 foo => 'bar',
25 search_foo => undef,
26 baz => undef,
27 },
28 );
29 $oICE->stop;
30 my $o1 = new WWW::Search('Ebay');
31 # Call native_query with no options:
32 $o1->native_query('junk');
33 # Do an actual search with debugging turned on:
34 $oICE->start;
35 $o1->native_query('star wars taco bell',
36 {
37 search_debug => 1,
38 search_parse_debug => 1,
39 },
40 );
41 $o1->next_result;
42 $oICE->stop;
43
44 exit 0;
45
46 __END__
47