File Coverage: lib/Code/Statistics/Target/RootDocument.pm

# File Coverage

File: | lib/Code/Statistics/Target/RootDocument.pm
Coverage: | 100.0%

line | stmt | bran | cond | sub | pod | time | code
--- | --- | --- | --- | --- | --- | --- | ---
1 | 2 2 2 |  |  | 2 |  | 0 0 0 | use strict;
2 | 2 2 2 |  |  | 2 |  | 0 0 0 | use warnings;
3 |
4 |  |  |  |  |  |  | package Code::Statistics::Target::RootDocument;
5 |
6 |  |  |  |  |  |  | # ABSTRACT: represents the root PPI document of a perl file
7 |
8 | 2 2 2 |  |  | 2 |  | 0 0 0 | use Moose;
9 |  |  |  |  |  |  | extends 'Code::Statistics::Target';
10 |
11 - 13 |  |
    =head2 find_targets
        Returns the root PPI document of the given perl file.
    =cut
14 |
15 |  |  |  |  |  |  | sub find_targets {
16 |  |  |  |  |  |  | my ( $class, $file ) = @_;
17 |  |  |  |  |  |  | return [ $file->ppi ];
18 |  |  |  |  |  |  | }
19 |
20 |  |  |  |  |  |  | 1;