---
name: "CGI::Session::Test::Default"
section: "3pm"
platform: "linux"
package: "perl-cgi-session"
version: "4.49-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Session::Test::Default"
---

# CGI::Session::Test::Default(3pm)

Run a suite of tests for a given CGI::Session::Driver

## NAME

CGI::Session::Test::Default - Run a suite of tests for a given CGI::Session::Driver

### new()

```
    my $t = CGI::Session::Test::Default->new(
        # These are all optional, with default as follows
        dsn   => "driver:file",
        args  => undef,
        tests => 77,
    );
```

Create a new test object, possibly overriding some defaults.

### number\_of\_tests()

```
    my $new_num = $t->number_of_tests($new_num);
```

A setter/accessor method to affect the number of tests to run, after `new()` has been called and before `run()`.

### run()

```
    $t->run();
```

Run the test suite. See `new()` for setting related options.
