X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest.pm;h=e73061abb3f0bba2920d8d4337a3e0901ff4cd3b;hp=d306b29735f143ef6823d336d320423d97295b32;hb=a33fc154378be5c0b0c3f4fdc1ff4c1d32c379b3;hpb=8c6e0b6d4792ace87bcb69f1ee6c8c52fbff9a87 diff --git a/lib/ZOOM/IRSpy/Test.pm b/lib/ZOOM/IRSpy/Test.pm index d306b29..e73061a 100644 --- a/lib/ZOOM/IRSpy/Test.pm +++ b/lib/ZOOM/IRSpy/Test.pm @@ -1,4 +1,4 @@ -# $Id: Test.pm,v 1.1 2006-06-20 16:32:42 mike Exp $ +# $Id: Test.pm,v 1.8 2007-04-18 15:24:45 mike Exp $ package ZOOM::IRSpy::Test; @@ -12,47 +12,23 @@ ZOOM::IRSpy::Test - base class for tests in IRSpy =head1 SYNOPSIS - ### To follow + ## To follow =head1 DESCRIPTION -I<### To follow> +I<## To follow> =cut -sub new { - my $class = shift(); - my($irspy) = @_; - - return bless { - irspy => $irspy, - }, $class; -} - - -sub irspy { - my $this = shift(); - return $this->{irspy}; -} - +sub subtests { () } -sub run { - my $this = shift(); - die "can't run the base-class test"; -} +sub timeout { undef } -### Could include loop detection -sub run_tests { - my $this = shift(); - my @tname = @_; - - my $res = 0; - foreach my $tname (@tname) { - my $sub = $this->irspy()->_run_test($tname); - $res = $sub if $sub > $res; - } +sub start { + my $class = shift(); + my($conn) = @_; - return $res; + die "can't start the base-class test"; }