Sindbad~EG File Manager

Current Path : /proc/2470164/root/usr/share/doc/perl-Test-Harness/examples/harness-hook/lib/Harness/
Upload File :
Current File : //proc/2470164/root/usr/share/doc/perl-Test-Harness/examples/harness-hook/lib/Harness/Hook.pm

package Harness::Hook;

use strict;
use warnings;
use Carp;

sub new {
    my ( $class, $harness ) = @_;
    my $self = bless {}, $class;

    $harness->callback(
        'before_runtests',
        sub {
            my ($aggregate) = @_;
            warn "Before runtests\n";
        }
    );

    $harness->callback(
        'after_runtests',
        sub {
            my ( $aggregate, $results ) = @_;
            warn "After runtests\n";
        }
    );

    return $self;
}

1;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists