File Coverage

blib/lib/PPI/Structure/Constructor.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package PPI::Structure::Constructor;
2              
3             =pod
4              
5             =head1 NAME
6              
7             PPI::Structure::Constructor - Anonymous hash or array constructor
8              
9             =head1 SYNOPSIS
10              
11             my $array = [ 'foo', 'bar' ];
12             my $hash = { foo => 'bar' };
13              
14             =head1 INHERITANCE
15              
16             PPI::Structure::Constructor
17             isa PPI::Structure
18             isa PPI::Node
19             isa PPI::Element
20              
21             =head1 DESCRIPTION
22              
23             C<PPI::Structure::Constructor> is the class used for anonymous C<ARRAY>
24             reference of C<HASH> reference constructors.
25              
26             =head1 METHODS
27              
28             C<PPI::Structure::Constructor> has no methods beyond those provided by
29             the standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
30              
31             =cut
32              
33 66     66   330 use strict;
  66         107  
  66         1765  
34 66     66   249 use PPI::Structure ();
  66         129  
  66         3422  
35              
36             our $VERSION = '1.284';
37              
38             our @ISA = "PPI::Structure";
39              
40             1;
41              
42             =pod
43              
44             =head1 SUPPORT
45              
46             See the L<support section|PPI/SUPPORT> in the main module.
47              
48             =head1 AUTHOR
49              
50             Adam Kennedy E<lt>adamk@cpan.orgE<gt>
51              
52             =head1 COPYRIGHT
53              
54             Copyright 2001 - 2011 Adam Kennedy.
55              
56             This program is free software; you can redistribute
57             it and/or modify it under the same terms as Perl itself.
58              
59             The full text of the license can be found in the
60             LICENSE file included with this module.
61              
62             =cut