File: g4_freezethaw.t

package info (click to toggle)
libcgi-session-perl 4.48-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 616 kB
  • sloc: perl: 1,920; makefile: 5
file content (38 lines) | stat: -r--r--r-- 1,077 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id$

use strict;


use Test::More;
use File::Spec;
use CGI::Session::Test::Default;

eval { require FreezeThaw };
plan skip_all=>"FreezeThaw is NOT available" if $@;


my $ses_dir = File::Spec->catdir('t', 'sessiondata');
my $t = CGI::Session::Test::Default->new(
    dsn => "Driver:file;serial:FreezeThaw",
    args=>{Directory=> $ses_dir });

plan tests => $t->number_of_tests;
$t->run();

#TODO: {
#    local $TODO = 'figure out how to test that $CGI::Session::Driver::file::FileName 
#                    is being handled correctly.';
#    local $CGI::Session::Driver::file::FileName = 'set_by_var.txt';
#    ok(0,'STUB');
#    #my $s = CGI::Session->new('Driver:file;serial:FreezeThaw',undef, { Directory=>$ses_dir } );
#}
#
#$CGI::Session::File::FileName = 'test_%s.txt';
#{
#    
#    ok(my $s = CGI::Session->new('Driver:file;serial:FreezeThaw',undef,
#            { Directory=> $ses_dir } ));
#    is( $CGI::Session::Driver::file::FileName,
#        $CGI::Session::File::FileName,
#        'compatibility with $CGI::Session::File::FileName has been preserved');
#}