File Coverage

lib/Code/Statistics/Metric/deviation.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 3 3 100.0
total 24 24 100.0


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