line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::DBus::Address; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
118889
|
use strict; |
|
7
|
|
|
|
|
29
|
|
|
7
|
|
|
|
|
198
|
|
4
|
7
|
|
|
7
|
|
34
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
160
|
|
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
835
|
use Call::Context; |
|
7
|
|
|
|
|
758
|
|
|
7
|
|
|
|
|
2068
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Not a very choosy parser, and it doesn’t try to validate anything. |
9
|
|
|
|
|
|
|
sub parse { |
10
|
4
|
|
|
4
|
0
|
11255
|
Call::Context::must_be_list(); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
return map { |
13
|
4
|
|
|
|
|
85
|
my $str = $_; |
|
5
|
|
|
|
|
19
|
|
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
|
|
36
|
my $xport = substr( $_, 0, 1 + index($_, ':'), q<> ); |
16
|
5
|
|
|
|
|
20
|
chop $xport; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my %kvs = ( |
19
|
5
|
|
|
|
|
17
|
map { split m<=>, $_ } (split m<,>, $_), |
|
6
|
|
|
|
|
45
|
|
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
5
|
|
|
|
|
34
|
s<%(..)>ge for values %kvs; |
|
0
|
|
|
|
|
0
|
|
23
|
|
|
|
|
|
|
|
24
|
5
|
|
|
|
|
64
|
bless { _str => $str, _transport => $xport, _attrs => \%kvs }, __PACKAGE__; |
25
|
|
|
|
|
|
|
} ( split m<;>, $_[0] ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#---------------------------------------------------------------------- |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub transport { |
31
|
5
|
|
|
5
|
0
|
9195
|
return $_[0]{'_transport'}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub to_string { |
35
|
3
|
|
|
3
|
0
|
75
|
return $_[0]{'_str'}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub attribute { |
39
|
8
|
|
|
8
|
0
|
139
|
return $_[0]{'_attrs'}{$_[1]}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |