File Coverage

blib/lib/HTML/WidgetValidator/Widget/NiftyVote.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::NiftyVote;
2 1     1   6 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         70  
3 1     1   5 use warnings;
  1         1  
  1         22  
4 1     1   5 use strict;
  1         1  
  1         110  
5              
6             __PACKAGE__->name('NiftyVote');
7             __PACKAGE__->url('http://vote.nifty.com/');
8             __PACKAGE__->models([
9             [ { type => 'start', name => 'script',
10             attr => {
11             type => 'text/javascript',
12             charset => 'utf8',
13             src => qr{http://files\.vote\.nifty\.com/individual/\d+/\d+/vote(?:_sidebar)?\.js},
14             }},
15             { type => 'end', name=>'script' } ],
16             ]);
17              
18             1;
19             __END__