File Coverage

blib/lib/HTML/WidgetValidator/Widget/NhkNowOnAir.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::NhkNowOnAir;
2 1     1   6 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         73  
3 1     1   5 use warnings;
  1         1  
  1         24  
4 1     1   4 use strict;
  1         2  
  1         119  
5              
6             __PACKAGE__->name('NHK NOW ON AIR');
7             __PACKAGE__->url('http://www.nhk.or.jp/lab-blog/02/998.html');
8             __PACKAGE__->models([
9             [
10             { type => 'start', name => 'script',
11             attr => {
12             src => qr{http://www[.]nhk[.]or[.]jp/lab-blog/blogtools/script/noa(?:150|210).js},
13             type => 'text/javascript',
14             language => 'javascript',
15             }
16             },
17             { type => 'end', name => 'script' }
18             ]
19             ]);
20              
21             1;
22             __END__