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   913 use strict;
  1         3  
  1         39  
2 1     1   5 use warnings;
  1         3  
  1         119  
3              
4             package Code::Statistics::Metric::deviation;
5             {
6             $Code::Statistics::Metric::deviation::VERSION = '1.112980';
7             }
8              
9             # ABSTRACT: measures the starting column of a target
10              
11 1     1   6 use Moose;
  1         2  
  1         8  
12             extends 'Code::Statistics::Metric';
13              
14              
15             sub incompatible_with {
16 32     32 1 68 my ( $class, $target ) = @_;
17 32         163 return 1;
18             }
19              
20              
21             sub is_insignificant {
22 3     3 1 5 my ( $class ) = @_;
23 3         15 return 1;
24             }
25              
26              
27             sub short_name {
28 20     20 1 24 my ( $class ) = @_;
29 20         57 return 'Dev.';
30             }
31              
32             1;
33              
34             __END__
35             =pod
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.112980
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             This software is Copyright (c) 2010 by Christian Walde.
70              
71             This is free software, licensed under:
72              
73             DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004
74              
75             =cut
76