Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jan 3, 2024
1 parent 177250b commit 95c34fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/script.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use Test::Most tests => 61;
use Test::Most tests => 63;
use File::Spec;
use Cwd;
use Test::NoWarnings;
Expand Down Expand Up @@ -212,4 +212,10 @@ PATHS: {
ok(!defined($p{barney}));
ok($i->fred() eq 'wilma');
ok(!defined($i->barney()));

$ENV{'SCRIPT_FILENAME'} = '/tulip';
delete $ENV{'SCRIPT_NAME'};
delete $ENV{'DOCUMENT_ROOT'};
$i = new_ok('CGI::Info');
cmp_ok($i->script_path(), 'eq', '/tulip', 'SCRIPT_FILENAME is read from the environment');
}

0 comments on commit 95c34fe

Please sign in to comment.