File Coverage

blib/lib/HTML/WidgetValidator/Widget/GooDictionary.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package HTML::WidgetValidator::Widget::GooDictionary;
2 1     1   6 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         74  
3 1     1   6 use warnings;
  1         2  
  1         24  
4 1     1   5 use strict;
  1         1  
  1         29  
5 1     1   6 use Carp;
  1         2  
  1         143  
6            
7             __PACKAGE__->name('Goo Dictionary');
8             __PACKAGE__->url('http://dictionary.goo.ne.jp/blog_parts.html');
9             __PACKAGE__->models([
10             [ { type => 'start', name => 'script',
11             attr => {
12             charset => 'euc-jp',
13             src => qr{http:\/\/dictionary\.goo\.ne\.jp\/dictionary\/blog_parts\/js\/blog_search_[a-z]{4,6}\.js},
14             }},
15             { type => 'end', name=>'script' } ],
16             ]);
17            
18             1;
19             __END__