File Coverage: lib/Code/Statistics/Metric/path.pm

# File Coverage

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

line | stmt | bran | cond | sub | pod | time | code
--- | --- | --- | --- | --- | --- | --- | ---
1 | 1 1 1 |  |  | 1 |  | 0 0 0 | use strict;
2 | 1 1 1 |  |  | 1 |  | 0 0 0 | use warnings;
3 |
4 |  |  |  |  |  |  | package Code::Statistics::Metric::path;
5 |
6 |  |  |  |  |  |  | # ABSTRACT: measures the starting column of a target
7 |
8 | 1 1 1 |  |  | 1 |  | 0 0 0 | use Moose;
9 |  |  |  |  |  |  | extends 'Code::Statistics::Metric';
10 |
11 - 15 |  |
    =head2 incompatible_with
        Returns true if the given target is explicitly not supported by this metric.

        Returns false for this class, since it is never measured and just serves as a placeholder for the path column.
    =cut
16 |
17 |  |  |  |  |  |  | sub incompatible_with {
18 |  |  |  |  |  |  | my ( $class, $target ) = @_;
19 |  |  |  |  |  |  | return 1;
20 |  |  |  |  |  |  | }
21 |
22 - 27 |  |
    =head2 is_insignificant
        Returns true if the metric is considered statistically insignificant.

        Returns false for this class, since it only identifies the location of a
        target.
    =cut
28 |
29 |  |  |  |  |  |  | sub is_insignificant {
30 |  |  |  |  |  |  | my ( $class ) = @_;
31 |  |  |  |  |  |  | return 1;
32 |  |  |  |  |  |  | }
33 |
34 |  |  |  |  |  |  | 1;