Roles/RaiseError.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 4 SCAR 25.1
CC
4
Cov
0%
rewrite
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 12.3
1 # $Id: RaiseError.pm,v 1.2 2006/01/23 21:40:39 dk Exp $
2  
3 package DBIx::Roles::RaiseError;
4  
5 use strict;
6 use DBIx::Roles;
7 use vars qw($VERSION);
8  
9 $VERSION = '1.00';
10  
11 sub rewrite
12 {
13 my ( $self, $storage, $method, $parameters) = @_;
14 if ( $method eq 'connect') {
15 $parameters->[3]->{PrintError} = 0 unless exists $parameters->[3]->{PrintError};
16 $parameters->[3]->{RaiseError} = 1 unless exists $parameters->[3]->{RaiseError};
17 }
18 return $self-> super( $method, $parameters);
19 }
20  
21 1;
22  
23 __DATA__