working once again

This commit is contained in:
JT Smith 2006-01-15 06:09:33 +00:00
parent fc16c9ce95
commit 295e2b4a73

20
t/POD.t
View file

@ -1,5 +1,5 @@
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2005 Plain Black Corporation.
# WebGUI is Copyright 2001-2006 Plain Black Corporation.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
@ -19,7 +19,6 @@ use File::Find;
use Test::More;
my $session = initialize(); # this line is required
my @modules = ();
find(\&countModules, "../lib/WebGUI");
@ -31,7 +30,6 @@ foreach my $package (sort @modules) {
ok($pc->coverage, $package);
}
cleanup($session); # this line is required
sub countModules {
my $filename = $File::Find::dir."/".$_;
@ -46,20 +44,4 @@ sub countModules {
# ---- DO NOT EDIT BELOW THIS LINE -----
sub initialize {
$|=1; # disable output buffering
my $configFile;
GetOptions(
'configFile=s'=>\$configFile
);
exit 1 unless ($configFile);
my $session = WebGUI::Session->open("..",$configFile);
}
sub cleanup {
my $session = shift;
$session->close();
}