lib/VSGDR/SQLServer/DataType/Generic.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 32 SCAR 6.9
CC
1
Cov
0%
getValue
2.0
quoteValue
2.0
unQuoteValue
2.0
CRAP 2.0
1 package VSGDR::SQLServer::DataType::Generic ;
2
3 #our \$VERSION = "1.01";
4 use strict;
5 use warnings;
6
7 use parent qw(VSGDR::SQLServer::DataType);
8
9
10 sub getValue {
11 local $_ ;
12 my $self = shift ;
13 return $self->{VALUE} ;
14 }
15
16 sub quoteValue {
17 local $_ ;
18 my $self = shift ;
19 my $value = shift ;
20 $value =~ s{"}{\\"}gms; #" -- kill Textpad highlighting
21 return $value ;
22 }
23
24 sub unQuoteValue {
25 local $_ ;
26 my $self = shift ;
27 my $value = shift ;
28 $value =~ s{\\"}{"}gms; #" -- kill Textpad highlighting
29 return $value ;
30 }
31
32 1 ;
33
34 __DATA__