line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::WidgetValidator::Result;
|
2
|
45
|
|
|
45
|
|
252
|
use base qw(Class::Accessor::Fast);
|
|
45
|
|
|
|
|
82
|
|
|
45
|
|
|
|
|
470
|
|
3
|
45
|
|
|
45
|
|
5459
|
use warnings;
|
|
45
|
|
|
|
|
99
|
|
|
45
|
|
|
|
|
1308
|
|
4
|
45
|
|
|
45
|
|
229
|
use strict;
|
|
45
|
|
|
|
|
97
|
|
|
45
|
|
|
|
|
10367
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw(widget elements));
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new {
|
9
|
0
|
|
|
0
|
1
|
|
my ($class, %args) = @_;
|
10
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new(\%args);
|
11
|
|
|
|
|
|
|
}
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub code {
|
14
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
15
|
0
|
|
|
|
|
|
return join '', map {$_->{text}} @{$self->elements};
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
}
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub name {
|
19
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
20
|
0
|
0
|
|
|
|
|
return unless $self->widget;
|
21
|
0
|
|
|
|
|
|
return $self->widget->name;
|
22
|
|
|
|
|
|
|
}
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub url {
|
25
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
26
|
0
|
0
|
|
|
|
|
return unless $self->widget;
|
27
|
0
|
|
|
|
|
|
return $self->widget->url;
|
28
|
|
|
|
|
|
|
}
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1;
|
31
|
|
|
|
|
|
|
__END__
|