File Coverage

blib/lib/HTML/WidgetValidator/Widget/LingrBadge.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::LingrBadge;
2 1     1   4 use strict;
  1         2  
  1         27  
3 1     1   4 use warnings;
  1         2  
  1         23  
4 1     1   5 use base qw(HTML::WidgetValidator::Widget);
  1         1  
  1         171  
5              
6             our $VERSION = '0.01';
7              
8             __PACKAGE__->name('Lingr Badge');
9             __PACKAGE__->url('http://www.lingr.com/');
10             __PACKAGE__->models([
11             [
12             {
13             "name" => "script",
14             "type" => "start",
15             "attr" => {
16             "src" => qr{http://www[.]lingr[.]com/room/[[:alnum:]]{11}/badge/render},
17             "charset" => "utf-8",
18             "type" => "text/javascript"
19             }
20             },
21             {
22             "name" => "script",
23             "type" => "end"
24             }
25             ]
26             ]);
27              
28             1;
29              
30             __END__