| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
1
|
|
|
1
|
|
1301
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
36
|
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
43
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Code::Statistics::Metric::line; |
|
5
|
|
|
|
|
|
|
$Code::Statistics::Metric::line::VERSION = '1.190680'; |
|
6
|
|
|
|
|
|
|
# ABSTRACT: measures the line number of a target |
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
13
|
use Moose; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
8
|
|
|
9
|
|
|
|
|
|
|
extends 'Code::Statistics::Metric'; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub measure { |
|
13
|
76
|
|
|
76
|
1
|
118
|
my ( $class, $target ) = @_; |
|
14
|
76
|
|
|
|
|
127
|
my $line = $target->location->[0]; |
|
15
|
76
|
|
|
|
|
1218
|
return $line; |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub is_insignificant { |
|
20
|
3
|
|
|
3
|
1
|
4
|
my ( $class ) = @_; |
|
21
|
3
|
|
|
|
|
7
|
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::line - measures the line number of a target |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 1.190680 |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 measure |
|
41
|
|
|
|
|
|
|
Returns the line number 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 |