TAP::Formatter::Session(3pm) Perl Programmers Reference Guide TAP::Formatter::Session(3pm)

# [NAME](#NAME)

TAP::Formatter::Session - Abstract base class for harness output delegate

# [VERSION](#VERSION)

Version 3.52

# [METHODS](#METHODS)

## [Class Methods](#Class_Methods)

*"new"*

```
 my %args = (
    formatter => $self,
 )
 my $harness = TAP::Formatter::Console::Session->new( \%args );
```

The constructor returns a new "TAP::Formatter::Console::Session" object.

- "formatter"
- "parser"
- "name"
- "show\_count"

*"header"*

Output test preamble

*"result"*

Called by the harness for each line of TAP it receives.

*"close\_test"*

Called to close a test session.

*"clear\_for\_close"*

Called by "close\_test" to clear the line showing test progress, or the parallel test ruler, prior to printing the final test result.

*"time\_report"*

Return a formatted string about the elapsed (wall-clock) time and about the consumed CPU time.

2026-08-31 perl v5.44.0

---

Document: TAP::Formatter::Session(3pm) from perl 5.44.0-r1 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
