[1077] Make it easy for a subclass to replace the scheduler

Eric Wilhelm scratchcomputing at gmail.com
Wed Jun 4 01:20:34 UTC 2008


# from andy at hexten.net
# on Monday 02 June 2008 16:49:

>+sub make_scheduler {
>+    my ( $self, @tests ) = @_;
>+    return TAP::Parser::Scheduler->new(
>+        tests => \@tests,
>+        rules => $self->rules
>+    );
>+}

This is a familiar theme, eh?

Similar to what Steve's pain with the parser, but this is in Harness.pm.

Again, I suspect that these would be more useful as instance data, then 
it doesn't even need a subclass.

On a related note:  making mutators in Parser.pm means we probably need 
something in Harness.pm which is able to mutate them from that level.  
Is there a subref hook available for that?

--Eric
-- 
Entia non sunt multiplicanda praeter necessitatem.
--Occam's Razor
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------


More information about the tapx-dev mailing list