File Coverage

blib/lib/HTML/WidgetValidator/Widget/AlexaTrafficRankButton.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package HTML::WidgetValidator::Widget::AlexaTrafficRankButton;
2 1     1   5 use base qw(HTML::WidgetValidator::Widget);
  1         3  
  1         74  
3 1     1   5 use warnings;
  1         2  
  1         40  
4 1     1   7 use strict;
  1         2  
  1         185  
5              
6             __PACKAGE__->name('Alexa Traffic Rank Button');
7             __PACKAGE__->url('http://www.alexa.com/site/site_stats/signup');
8             __PACKAGE__->models([
9             [
10             {
11             type =>'start',
12             name =>'script',
13             attr => { type => 'text/javascript',
14             language => 'JavaScript',
15             src => qr{http://xslt\.alexa\.com/site_stats/js/t/(?:a|b|c)\?url=[\w\.%\-\/:\s]+} },
16             },
17             { type => 'end', name=>'script' }
18             ],
19             ]);
20              
21             1;
22             __END__