BookBot/Chinese/Agriculture/GreenHouse/Tech.pm untested

filter: Statementstmt 0.0% 0 / 41 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 66 CC 2 SCAR 9.3
CC
2
Cov
0%
argv_process_all
6.0
default_settings
2.0
msg_init
2.0
CRAP 2.5
1 package WWW::BookBot::Chinese::Agriculture::GreenHouse::Tech;
2  
3 use 5.008;
4 use strict;
5 use warnings;
6 no warnings qw(uninitialized);
7 use base qw(WWW::BookBot::Chinese);
8 our $VERSION='1.02';
9  
10 sub default_settings {
11 my $self = shift->SUPER::default_settings;
12 $self->{text_paragraph_type}='cr';
13 $self->{book_has_chapters}=0;
14 $self->{get_trunk_size}=2500;
15 $self->{get_trunk_fresh_size}=250;
16 $self;
17 }
18 sub msg_init {
19 my $self = shift;
20 my $msg=$self->SUPER::msg_init;
21 $msg->{CatalogURL}='http://www.chinagreenhouse.com/chinagreenhouse/maindoc/newproducts/subject_newproducts_display.asp?direction=next';
22 $msg->{CatalogInfo}='==>ÖйúÎÂÊÒÍøÐ²úƷм¼Êõ£º';
23 }
24  
25 sub get_alias {
26 'agr_cngreen_tech';
27 }
28 sub argv_default {
29 qw();
30 }
31 sub argv_process {
32 my ($self, $pargs)=@_;
33 $self->go_catalog($pargs);
34 }
35 sub argv_process_all {
36 my ($self, $pargs)=@_;
37 for($pargs->{pageno}=1; $pargs->{pageno}<=$self->{catalog_max_pages}; $pargs->{pageno}++) {
38 last if $self->go_catalog({})==0;
39 }
40 }
41 sub getpattern_catalog_head_data {
42 <<'DATA';
43 <p><font size="2"><b>page
44 DATA
45 }
46 sub getpattern_catalog_end_data {
47 <<'DATA';
48 <p><a href="subject_newproducts_display.asp
49 DATA
50 }
51 sub getpattern_catalog_get_next_data {
52 <<'DATA';
53 >Next Page<
54 DATA
55 }
56  
57 1;
58 __END__