File Coverage

lib/Code/Statistics/Target/RootDocument.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1 1     1   493 use strict;
  1         2  
  1         37  
2 1     1   5 use warnings;
  1         2  
  1         55  
3              
4             package Code::Statistics::Target::RootDocument;
5             $Code::Statistics::Target::RootDocument::VERSION = '1.190680';
6             # ABSTRACT: represents the root PPI document of a perl file
7              
8 1     1   6 use Moose;
  1         1  
  1         5  
9             extends 'Code::Statistics::Target';
10              
11              
12             sub find_targets {
13 8     8 1 19 my ( $class, $file ) = @_;
14 8         158 return [ $file->ppi ];
15             }
16              
17             1;
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Code::Statistics::Target::RootDocument - represents the root PPI document of a perl file
28              
29             =head1 VERSION
30              
31             version 1.190680
32              
33             =head2 find_targets
34             Returns the root PPI document of the given perl file.
35              
36             =head1 AUTHOR
37              
38             Christian Walde <mithaldu@yahoo.de>
39              
40             =head1 COPYRIGHT AND LICENSE
41              
42              
43             Christian Walde has dedicated the work to the Commons by waiving all of his
44             or her rights to the work worldwide under copyright law and all related or
45             neighboring legal rights he or she had in the work, to the extent allowable by
46             law.
47              
48             Works under CC0 do not require attribution. When citing the work, you should
49             not imply endorsement by the author.
50              
51             =cut