line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
718
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Code::Statistics::Metric::col; |
5
|
|
|
|
|
|
|
$Code::Statistics::Metric::col::VERSION = '1.190680'; |
6
|
|
|
|
|
|
|
# ABSTRACT: measures the starting column of a target |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
40
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
extends 'Code::Statistics::Metric'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub measure { |
13
|
76
|
|
|
76
|
1
|
156
|
my ( $class, $target ) = @_; |
14
|
76
|
|
|
|
|
199
|
my $line = $target->location->[2]; |
15
|
76
|
|
|
|
|
19380
|
return $line; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub is_insignificant { |
20
|
3
|
|
|
3
|
1
|
6
|
my ( $class ) = @_; |
21
|
3
|
|
|
|
|
8
|
return 1; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Code::Statistics::Metric::col - measures the starting column of a target |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 1.190680 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 measure |
41
|
|
|
|
|
|
|
Returns the starting column of the given target. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 is_insignificant |
44
|
|
|
|
|
|
|
Returns true if the metric is considered statistically insignificant. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Returns false for this class, since it only identifies the location of a |
47
|
|
|
|
|
|
|
target. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHOR |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Christian Walde <mithaldu@yahoo.de> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Christian Walde has dedicated the work to the Commons by waiving all of his |
57
|
|
|
|
|
|
|
or her rights to the work worldwide under copyright law and all related or |
58
|
|
|
|
|
|
|
neighboring legal rights he or she had in the work, to the extent allowable by |
59
|
|
|
|
|
|
|
law. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Works under CC0 do not require attribution. When citing the work, you should |
62
|
|
|
|
|
|
|
not imply endorsement by the author. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |