File Coverage

blib/lib/PerlBean/Method.pm
Criterion Covered Total %
statement 172 186 92.4
branch 85 120 70.8
condition 12 29 41.3
subroutine 33 33 100.0
pod 24 24 100.0
total 326 392 83.1


line stmt bran cond sub pod time code
1             package PerlBean::Method;
2              
3 10     10   193 use 5.005;
  10         30  
  10         356  
4 10     10   47 use strict;
  10         29  
  10         252  
5 10     10   43 use warnings;
  10         14  
  10         263  
6 10     10   54 use AutoLoader qw(AUTOLOAD);
  10         13  
  10         50  
7 10     10   299 use Error qw(:try);
  10         18  
  10         56  
8 10     10   4087 use PerlBean::Style qw(:codegen);
  10         23  
  10         3442  
9              
10             # Variable to not confuse AutoLoader
11             our $SUB = 'sub';
12              
13             # Used by _value_is_allowed
14             our %ALLOW_ISA = (
15             'perl_bean' => [ 'PerlBean' ],
16             );
17              
18             # Used by _value_is_allowed
19             our %ALLOW_REF = (
20             );
21              
22             # Used by _value_is_allowed
23             our %ALLOW_RX = (
24             'body' => [ '.*' ],
25             'method_name' => [ '^\w+$' ],
26             );
27              
28             # Used by _value_is_allowed
29             our %ALLOW_VALUE = (
30             );
31              
32             # Used by _initialize
33             our %DEFAULT_VALUE = (
34             'documented' => 1,
35             'exception_class' => 'Error::Simple',
36             'implemented' => 1,
37             );
38              
39             # Package version
40             our ($VERSION) = '$Revision: 1.0 $' =~ /\$Revision:\s+([^\s]+)/;
41              
42             1;
43              
44             __END__