|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/share/doc/perl-Test-Harness-3.28/examples/harness-hook/lib/Harness/ |
Upload File : |
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;