/
usr
/
share
/
doc
/
perl-Test-Harness-3.28
/
examples
/
harness-hook
/
lib
/
Harness
/
File Upload :
llllll
Current File: //usr/share/doc/perl-Test-Harness-3.28/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;
Copyright ©2k19 -
Hexid
|
Tex7ure