X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest.pm;h=765cd4f9f6e72025b71641bd819450c9232ee90d;hb=0106545dd91706b8db717e072e48baf03b151a8f;hp=20fa772162164d9f83e90acea99eaaf0b75f6e3f;hpb=8976789c74795ad9e92fe03e370e56501511426e;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Test.pm b/lib/ZOOM/IRSpy/Test.pm index 20fa772..765cd4f 100644 --- a/lib/ZOOM/IRSpy/Test.pm +++ b/lib/ZOOM/IRSpy/Test.pm @@ -1,4 +1,4 @@ -# $Id: Test.pm,v 1.3 2006-07-21 11:49:27 mike Exp $ +# $Id: Test.pm,v 1.8 2007-04-18 15:24:45 mike Exp $ package ZOOM::IRSpy::Test; @@ -6,6 +6,8 @@ use 5.008; use strict; use warnings; +use Scalar::Util; + =head1 NAME ZOOM::IRSpy::Test - base class for tests in IRSpy @@ -20,38 +22,15 @@ I<## To follow> =cut -sub new { - my $class = shift(); - my($irspy) = @_; - - return bless { - irspy => $irspy, - }, $class; -} - +sub subtests { () } -sub irspy { - my $this = shift(); - return $this->{irspy}; -} +sub timeout { undef } +sub start { + my $class = shift(); + my($conn) = @_; -sub run { - my $this = shift(); - die "can't run the base-class test"; -} - -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; - } - - return $res; + die "can't start the base-class test"; }