File Coverage

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

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