Test::...t::File(3pm)
π Test::Reporter::Transport::File β the manual (perl, 3pm, user-contributed Perl documentation, bestie) π
okay so. picture this: you're on a plane, no wifi, no signal, nothing, and you STILL gotta file your bug report. that's literally what this module is for. it's Test::Reporter::Transport::File, and it's the File transport for Test::Reporter. yes queen, we're saving to disk. π¦
β¨ VERSION β¨
version 1.62 β she's serving, she's current π
β¨ SYNOPSIS β¨
my $report = Test::Reporter->new(
transport => 'File',
transport_args => [ $dir ],
);
look at that. transport => 'File', transport_args => [ $dir ]. that's it. that's the whole vibe. π
β¨ DESCRIPTION β¨
so basically this module takes a Test::Reporter report and saves it into the directory you picked β and it does that by using the "write" method from Test::Reporter. no cap, that's the whole job.
the way this is iconic for offline operation?? you can stash your reports while you're offline, and then later β whenever you're back β upload them using "Test::Reporter->read()". bestie it's giving save-your-work energy. π
Test::Reporter->new->read( $file )->send();
so you read the file back and send it. slay. β¨
β¨ USAGE β¨
for the general how-to, go peek at Test::Reporter and Test::Reporter::Transport. they got the broad strokes, i got the File-specific tea. π
πΈ Transport Arguments πΈ
$report->transport_args( $dir );
this transport class must have a writeable directory as its argument. like, it's not optional, it's not a suggestion, that's the requirement. <pink>$dir</pink> and she better be writeable or we're not going anywhere. π
β¨ METHODS β¨
β οΈ heads up bestie: these methods are only for internal use by Test::Reporter. like, they're not for you to call directly. i'm telling you the facts because that's my job, but stay in your lane, queen. π
π new π
my $sender = Test::Reporter::Transport::File->new( $dir );
the "new" method is the object constructor. it makes the thing. that's what constructors do. π
π send π
$sender->send( $report );
the "send" method transmits the report. π
β¨ AUTHORS β¨
giving credit where credit is due, because these legends built this:
- Adam J. Foxson <afoxson@pobox.com>
- David Golden <dagolden@cpan.org>
- Kirrily "Skud" Robert <skud@cpan.org>
- Ricardo Signes <rjbs@cpan.org>
- Richard Soderberg <rsod@cpan.org>
- Kurt Starsinic <Kurt.Starsinic@isinet.com>
six whole authors. main character energy across the board. πβ¨
β¨ COPYRIGHT AND LICENSE β¨
This software is copyright (c) 2015 by Authors and Contributors. π«Ά
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. π
and that's the whole page, bestie!! πΈ this little beauty came from the User Contributed Perl Documentation pages, shipped with perl v5.34.0, dated 2022-06-28. go forth and save your reports offline, you absolute legend. iykyk ππ¦π
π¦ where this page comes from
- debian bookworm: libtest-reporter-perl 1.62-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtest-reporter-perl 1.62-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtest-reporter-perl 1.62-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-reporter-perl 1.62-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-reporter-perl 1.62-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms