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   16 use strict;
  2         6  
  2         69  
2 2     2   16 use warnings;
  2         6  
  2         168  
3              
4             package DBIx::LogAny::Constants;
5             require Exporter;
6             our @ISA = qw(Exporter);
7              
8 2     2   16 use constant DBIX_LA_LOG_DEFAULT => 0xdd;
  2         6  
  2         242  
9 2     2   18 use constant DBIX_LA_LOG_ALL => 0xffffff;
  2         6  
  2         105  
10 2     2   14 use constant DBIX_LA_LOG_INPUT => 0x1;
  2         4  
  2         93  
11 2     2   13 use constant DBIX_LA_LOG_OUTPUT => 0x2;
  2         5  
  2         94  
12 2     2   13 use constant DBIX_LA_LOG_CONNECT => 0x4;
  2         3  
  2         103  
13 2     2   13 use constant DBIX_LA_LOG_TXN => 0x8;
  2         5  
  2         101  
14 2     2   14 use constant DBIX_LA_LOG_ERRCAPTURE => 0x10;
  2         3  
  2         134  
15 2     2   12 use constant DBIX_LA_LOG_WARNINGS => 0x20;
  2         5  
  2         113  
16 2     2   17 use constant DBIX_LA_LOG_ERRORS => 0x40;
  2         6  
  2         97  
17 2     2   13 use constant DBIX_LA_LOG_DBDSPECIFIC => 0x80;
  2         8  
  2         1061  
18 2     2   16 use constant DBIX_LA_LOG_DELAYBINDPARAM => 0x100;
  2         5  
  2         95  
19 2     2   15 use constant DBIX_LA_LOG_SQL => 0x200;
  2         5  
  2         101  
20 2     2   15 use constant DBIX_LA_LOG_STORE => 0x400;
  2         6  
  2         347  
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;