testcount.pl untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 use Apache::SessionX ;
3  
4 use strict ;
5  
6 use vars qw(@tests %stdargs $timeout $errors) ;
7  
8 @tests = @Apache::SessionX::Config::confs ;
9  
10 %stdargs = (
11 SemaphoreKey => 0x7654,
12 ) ;
13  
14 $timeout = defined (&DB::DB)?0:2 ;
15 $errors = 0 ;
16  
17 my $cfg = shift ;
18 my $x = shift ;
19 my %sess ;
20 my $obj = tie (%sess, 'Apache::SessionX', undef, { %stdargs, 'config' => $cfg, lazy => 1, create_unknown => 1, Transaction => 1}) or die ("Cannot tie to Apache::SessionX") ;
21
22  
23 $| = 1 ;
24 my $i ;
25 while ($i < 10)
26 {
27 $obj -> setidfrom ('counter') ;
28 my $n = $sess{count} ;
29 #print "<[$$] $cfg = $n> " ;
30 print "$x$n " ;
31 $sess{count} = $n + 1 ;
32 $obj -> cleanup ;
33 $i++ ;
34 }
35  
36