File Coverage

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

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