projects
/
pkg-perl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Debian lenny version packages
[pkg-perl]
/
deb-src
/
libtest-harness-perl
/
libtest-harness-perl-3.12
/
examples
/
harness-hook
/
lib
/
Harness
/
Hook.pm
1
package Harness::Hook;
2
3
use strict;
4
use warnings;
5
use Carp;
6
7
sub new {
8
my ( $class, $harness ) = @_;
9
my $self = bless {}, $class;
10
11
$harness->callback(
12
'before_runtests',
13
sub {
14
my ($aggregate) = @_;
15
warn "Before runtests\n";
16
}
17
);
18
19
$harness->callback(
20
'after_runtests',
21
sub {
22
my ( $aggregate, $results ) = @_;
23
warn "After runtests\n";
24
}
25
);
26
27
return $self;
28
}
29
30
1;