Andy Armstrong > Test-Harness-2.99_01 > TAP::Base

Download:
Test-Harness-2.99_01.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  19
Open  18
View/Report Bugs
Module Version: 2.99_01   Source   Latest Release: Test-Harness-3.30

NAME ^

TAP::Base - Base class that provides common functionality to TAP::Parser and TAP::Harness

VERSION ^

Version 2.99_01

SYNOPSIS ^

    package TAP::Whatever;

    use TAP::Base;
    
    use vars qw($VERSION @ISA);
    @ISA = qw(TAP::Base);

    # ... later ...
    
    my $thing = TAP::Whatever->new();
    
    $thing->callback( event => sub {
        # do something interesting
    } );

DESCRIPTION ^

TAP::Base provides callback management.

METHODS ^

Class Methods

new

callback

Install a callback for a named event.

syntax highlighting: