File Coverage

blib/lib/DBIx/LogAny/Constants.pm
Criterion Covered Total %
statement 45 45 100.0
branch n/a
condition n/a
subroutine 15 15 100.0
pod n/a
total 60 60 100.0


line stmt bran cond sub pod time code
1 2     2   10 use strict;
  2         4  
  2         66  
2 2     2   9 use warnings;
  2         4  
  2         114  
3              
4             package DBIx::LogAny::Constants;
5             require Exporter;
6             our @ISA = qw(Exporter);
7              
8 2     2   9 use constant DBIX_LA_LOG_DEFAULT => 0xdd;
  2         3  
  2         124  
9 2     2   9 use constant DBIX_LA_LOG_ALL => 0xffffff;
  2         4  
  2         83  
10 2     2   8 use constant DBIX_LA_LOG_INPUT => 0x1;
  2         11  
  2         82  
11 2     2   9 use constant DBIX_LA_LOG_OUTPUT => 0x2;
  2         4  
  2         85  
12 2     2   9 use constant DBIX_LA_LOG_CONNECT => 0x4;
  2         3  
  2         85  
13 2     2   9 use constant DBIX_LA_LOG_TXN => 0x8;
  2         2  
  2         113  
14 2     2   9 use constant DBIX_LA_LOG_ERRCAPTURE => 0x10;
  2         4  
  2         67  
15 2     2   10 use constant DBIX_LA_LOG_WARNINGS => 0x20;
  2         3  
  2         80  
16 2     2   8 use constant DBIX_LA_LOG_ERRORS => 0x40;
  2         4  
  2         129  
17 2     2   9 use constant DBIX_LA_LOG_DBDSPECIFIC => 0x80;
  2         3  
  2         78  
18 2     2   9 use constant DBIX_LA_LOG_DELAYBINDPARAM => 0x100;
  2         3  
  2         76  
19 2     2   7 use constant DBIX_LA_LOG_SQL => 0x200;
  2         4  
  2         71  
20 2     2   10 use constant DBIX_LA_LOG_STORE => 0x400;
  2         3  
  2         400  
21              
22             our $LogMask = DBIX_LA_LOG_DEFAULT;
23              
24             our @EXPORT = ();
25             our @EXPORT_OK = qw ($LogMask);
26             our @EXPORT_MASKS = qw(DBIX_LA_LOG_DEFAULT
27             DBIX_LA_LOG_ALL
28             DBIX_LA_LOG_INPUT
29             DBIX_LA_LOG_OUTPUT
30             DBIX_LA_LOG_CONNECT
31             DBIX_LA_LOG_TXN
32             DBIX_LA_LOG_ERRCAPTURE
33             DBIX_LA_LOG_WARNINGS
34             DBIX_LA_LOG_ERRORS
35             DBIX_LA_LOG_DBDSPECIFIC
36             DBIX_LA_LOG_DELAYBINDPARAM
37             DBIX_LA_LOG_SQL
38             DBIX_LA_LOG_STORE
39             );
40             our %EXPORT_TAGS = (masks => \@EXPORT_MASKS);
41             Exporter::export_ok_tags('masks');
42              
43              
44             1;