Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

TAP::Base (3)

Name

TAP::Base - Base class that provides common functionality to TAP::Parser and TAP::Harness

Synopsis

package TAP::Whatever;

use base 'TAP::Base';

# ... later ...

my $thing = TAP::Whatever->new();

$thing->callback( event => sub {
# do something interesting
} );

Description

Perl Programmers Reference Guide                                  TAP::Base(3)



NAME
       TAP::Base - Base class that provides common functionality to
       TAP::Parser and TAP::Harness

VERSION
       Version 3.42

SYNOPSIS
           package TAP::Whatever;

           use base 'TAP::Base';

           # ... later ...

           my $thing = TAP::Whatever->new();

           $thing->callback( event => sub {
               # do something interesting
           } );

DESCRIPTION
       "TAP::Base" provides callback management.

METHODS
   Class Methods
       "callback"

       Install a callback for a named event.

       "get_time"

       Return the current time using Time::HiRes if available.

       "time_is_hires"

       Return true if the time returned by get_time is high resolution (i.e.
       if Time::HiRes is available).

       "get_times"

       Return array reference of the four-element list of CPU seconds, as with
       "times" in perlfunc.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | runtime/perl-532      |
       +---------------+-----------------------+
       |Stability      | Pass-through volatile |
       +---------------+-----------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.perl.org/.



perl v5.32.0                      2020-06-14                      TAP::Base(3)