File Coverage

File:lib/Code/Statistics/Metric/line.pm
Coverage:100.0%

linestmtbrancondsubpodtimecode
1
2
2
2
0
0
0
use strict;
2
2
2
2
0
0
0
use warnings;
3
4package Code::Statistics::Metric::line;
5
6# ABSTRACT: measures the line number of a target
7
8
2
2
2
0
0
0
use Moose;
9extends 'Code::Statistics::Metric';
10
11 - 13
=head2 measure
    Returns the line number of the given target.
=cut
14
15sub measure {
16    my ( $class, $target ) = @_;
17    my $line = $target->location->[0];
18    return $line;
19}
20
21sub is_significant {
22    my ( $class ) = @_;
23    return 0;
24}
25
261;