File Coverage

blib/lib/HTML/WidgetValidator/Widget/GoogleGadget.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::GoogleGadget;
2 1     1   7 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         80  
3 1     1   6 use warnings;
  1         2  
  1         26  
4 1     1   5 use strict;
  1         2  
  1         33  
5 1     1   5 use Carp;
  1         3  
  1         254  
6            
7             __PACKAGE__->name('Google Gadget');
8             __PACKAGE__->url('http://www.google.com/ig/directory?synd=open');
9             __PACKAGE__->models([
10             [ { type => 'start', name=>'script',
11             attr => {
12             src => qr{http:\/\/gmodules\.com\/ig\/ifr\?url=http:\/\/[^"<>]+&(?:amp;)?synd=open&(?:amp;)?w=\d{1,3}&(?:amp;)?h=\d{1,3}&(?:amp;)?title=[^"&<>]*&(?:amp;)?(?:lang=\w+&(?:amp;)?)?(?:country=\w+&(?:amp;)?)?border=[^"&<>]+&(?:amp;)?output=js},
13             }},
14             { type => 'end', name=>'script' } ],
15            
16             ]);
17            
18             1;
19             __END__