File Coverage

lib/Code/Statistics/Metric/path.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 20 20 100.0


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