Skip to content

Commit

Permalink
Remove debugging code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed Aug 20, 2020
1 parent 2c7c23e commit 138c2a8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/DB-small.t
Expand Up @@ -12,7 +12,6 @@ BEGIN {

# symbolic references used later
use strict qw( vars subs );
use Data::Dumper;

# @DB::dbline values have both integer and string components (Benjamin Goldberg)
use Scalar::Util qw( dualvar );
Expand Down Expand Up @@ -49,12 +48,7 @@ BEGIN {
# test DB::files()
{
my $dbf = () = DB::files();
my @temp = DB::files();
for (@temp[0..4]) { if (length $_) { print "AAA: $_\n"; } }
@temp = grep { /\.pm/ } keys %main::;
for (@temp[0..4]) { if (length $_) { print "BBB: $_\n"; } }
my $main = () = grep ( m!^_<!, keys %main:: );
print "CCC: $main\n";
is( $dbf, $main, 'DB::files() should pick up filenames from %main::' );
}

Expand All @@ -67,14 +61,9 @@ print "CCC: $main\n";
# test DB::loadfile()
#SKIP: {
{
print "WWW: $_\n" for @DB::dbline;
local (*DB::dbline, $DB::filename);
print "XXX: $DB::filename\n";
print Dumper \*DB::dbline;
ok( ! defined DB->loadfile('notafile'),
'DB::loadfile() should not find unloaded file' );
my @temp = grep { /\.pm/ } keys %main::;
for (@temp[0..4]) { if (length $_) { print "YYY: $_\n"; } }
my $file = (grep { m|^_<.+\.pm| } keys %main:: )[0];
ok($file, "Can identify loaded file");
$file =~ s/^_<..//;
Expand Down

0 comments on commit 138c2a8

Please sign in to comment.