1TAP::Base(3) User Contributed Perl Documentation TAP::Base(3)
2
3
4
6 TAP::Base - Base class that provides common functionality to
7 TAP::Parser and TAP::Harness
8
10 Version 3.28
11
13 package TAP::Whatever;
14
15 use TAP::Base;
16
17 use vars qw($VERSION @ISA);
18 @ISA = qw(TAP::Base);
19
20 # ... later ...
21
22 my $thing = TAP::Whatever->new();
23
24 $thing->callback( event => sub {
25 # do something interesting
26 } );
27
29 "TAP::Base" provides callback management.
30
32 Class Methods
33 "callback"
34
35 Install a callback for a named event.
36
37 "get_time"
38
39 Return the current time using Time::HiRes if available.
40
41 "time_is_hires"
42
43 Return true if the time returned by get_time is high resolution (i.e.
44 if Time::HiRes is available).
45
46
47
48perl v5.16.3 2013-05-02 TAP::Base(3)