File Coverage

blib/lib/Pod/POM/Constants.pm
Criterion Covered Total %
statement 36 36 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod n/a
total 48 48 100.0


line stmt bran cond sub pod time code
1             #============================================================= -*-Perl-*-
2             #
3             # Pod::POM::Constants
4             #
5             # DESCRIPTION
6             # Constants used by Pod::POM.
7             #
8             # AUTHOR
9             # Andy Wardley
10             # Andrew Ford
11             #
12             # COPYRIGHT
13             # Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
14             # Copyright (C) 2009 Andrew Ford. All Rights Reserved.
15             #
16             # This module is free software; you can redistribute it and/or
17             # modify it under the same terms as Perl itself.
18             #
19             # REVISION
20             # $Id: Constants.pm 89 2013-05-30 07:41:52Z ford $
21             #
22             #========================================================================
23              
24             package Pod::POM::Constants;
25             $Pod::POM::Constants::VERSION = '2.01';
26             require 5.006;
27              
28 18     18   91 use strict;
  18         31  
  18         443  
29 18     18   93 use warnings;
  18         32  
  18         487  
30              
31 18     18   9783 use parent qw( Exporter );
  18         4114  
  18         103  
32              
33             our @SEQUENCE = qw( CMD LPAREN RPAREN FILE LINE CONTENT );
34             our @STATUS = qw( IGNORE REDUCE REJECT );
35             our @EXPORT_OK = ( @SEQUENCE, @STATUS );
36             our %EXPORT_TAGS = (
37             status => [ @STATUS ],
38             seq => [ @SEQUENCE ],
39             all => [ @STATUS, @SEQUENCE ],
40             );
41              
42             # sequence items
43 18     18   2527 use constant CMD => 0;
  18         31  
  18         1654  
44 18     18   92 use constant LPAREN => 1;
  18         80  
  18         826  
45 18     18   84 use constant RPAREN => 2;
  18         28  
  18         868  
46 18     18   83 use constant FILE => 3;
  18         33  
  18         911  
47 18     18   100 use constant LINE => 4;
  18         29  
  18         872  
48 18     18   87 use constant CONTENT => 5;
  18         32  
  18         868  
49              
50             # node add return values
51 18     18   84 use constant IGNORE => 0;
  18         28  
  18         807  
52 18     18   84 use constant REDUCE => 1;
  18         30  
  18         887  
53 18     18   87 use constant REJECT => 2;
  18         33  
  18         1071  
54              
55              
56             1;
57              
58             =head1 NAME
59              
60             Pod::POM::Constants - constants used for Pod::POM
61              
62             =head1 DESCRIPTION
63              
64             Constants used by Pod::POM.
65              
66             =head1 AUTHOR
67              
68             Andy Wardley Eabw@kfs.orgE
69              
70             Andrew Ford Ea.ford@ford-mason.co.ukE
71              
72             =head1 COPYRIGHT AND LICENSE
73              
74             Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
75              
76             Copyright (C) 2009 Andrew Ford. All Rights Reserved.
77              
78             This module is free software; you can redistribute it and/or
79             modify it under the same terms as Perl itself.
80              
81             =cut