line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
4631
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
193
|
|
2
|
6
|
|
|
6
|
|
30
|
use warnings; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
275
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MetaPOD::Format::JSON::does::v1; |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
6
|
|
|
6
|
|
180
|
$MetaPOD::Format::JSON::does::v1::AUTHORITY = 'cpan:KENTNL'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
{ |
9
|
|
|
|
|
|
|
$MetaPOD::Format::JSON::does::v1::VERSION = '0.3.0'; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: Implementation of JSON/does format component |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
710
|
use Moo::Role; |
|
6
|
|
|
|
|
28030
|
|
|
6
|
|
|
|
|
41
|
|
16
|
6
|
|
|
6
|
|
2007
|
use Carp qw(croak); |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
1026
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub add_does { |
20
|
3
|
|
|
3
|
1
|
7
|
my ( $self, $does, $result ) = @_; |
21
|
3
|
100
|
66
|
|
|
28
|
if ( defined $does and not ref $does ) { |
22
|
1
|
|
|
|
|
5
|
return $result->add_does($does); |
23
|
|
|
|
|
|
|
} |
24
|
2
|
50
|
33
|
|
|
17
|
if ( defined $does and ref $does eq 'ARRAY' ) { |
25
|
2
|
|
|
|
|
4
|
return $result->add_does( @{$does} ); |
|
2
|
|
|
|
|
14
|
|
26
|
|
|
|
|
|
|
} |
27
|
0
|
|
|
|
|
|
croak 'Unsupported reftype ' . ref $does; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |