POD2TEST(1p)
π POD2TEST(1p) β bestie, we're so back (but also, we're deprecated π)
okay so hi. this is the manual page for pod2test, a lil Perl script living in the User Contributed Perl Documentation section of your man pages, section 1p. it's giving β¨legacyβ¨ and honestly? iconic behaviour. let's get into it.
πΈ NAME πΈ
pod2test β (DEPRECATED) Convert embedded tests and code examples to .t files
like... it takes your tests and your example code that are chillin' inside your POD, and it turns them into actual .t files. yes queen, that's the whole job. deprecated though, so keep that in mind, bestie π«Ά
π SYNOPSIS π
pod2test [-Mmodule] [input [output]]
short. sweet. slay. π
β¨ DESCRIPTION β¨
okay so pod2test is a front-end for Pod::Tests (which used to be called Test::Inline 1, throwback fr fr). what it does is it generates TAP-compatible .t testing scripts from your embedded tests and your code examples. no cap. π§
here's the tea on where everything goes:
- if
outputis not specified, the resulting.tfile goes straight toSTDOUTπ« - otherwise, it goes to the
outputfile you gave it - if
inputis not given, it will draw fromSTDINπ«Ά
and now the sad part π if the file you gave it contains no tests and no code examples, then:
- no output will be given
- no output file will be created
- and
pod2testwill exit with1
so like, it just leaves. no note. no text back. π
also! the Test::More module is made available to the testing blocks using the 'no_plan' feature. any further modules that should be used are specified with -M. UNIMPLEMENTED β yes bestie, that's literally all it says, i'm not making that up, it's in the source. π
π BUGS and CAVEATS π
this is a very simple rough cut, okay? it only does very rudimentary tests on the examples. that's it. that's the vibe. it's giving "we'll fix it later" and later never came. π₯
π SUPPORT π
so this script has been superceded by "inline2test" from the newer Test::Inline 2. moving on up, we love to see it β¨
the good news: most testing code that currently works with "pod2test" should continue to work with the new version. ate.
the notable exceptions are "=for begin" and "=for end" β those are deprecated in the newer version. so if you're leaning on those, heads up, bestie. π
after upgrading Test::Inline, Pod::Tests and "pod2test" were split out to provide a compatibility package for legacy code. that's the whole origin story. π«Ά
"pod2test" will stay in CPAN, but it should remain unchanged indefinately, with the exception of any minor bugs that will require squishing. (yes, "indefinately" β that's how it's spelled in the original and i am nothing if not faithful to the text π
)
bugs in this dist should be reported via the following URL. feature requests should not be submitted, as further development is now occuring in Test::Inline. π«
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Pod-Tests>
not me telling you to read the rules, but like... read the rules bestie. bugs only. no feature requests. periodt. π
π AUTHOR π
- Michael G Schwern
<schwern@pobox.com> - Adam Kennedy
<adamk@cpan.org>
legends. both of them. π
π₯ SEE ALSO π₯
Pod::TestsTest::Inline
go read those if you wanna know the lore, iykyk π¦
π COPYRIGHT π
- Copyright 2005 - 2008 Adam Kennedy.
- Copyright 2001 - 2003 Michael G Schwern.
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πΈ
the full text of the license can be found in the LICENSE file included with this module.
and that's the whole page, bestie!! this was generated fromperl v5.38.2and dated2024-02-21, so like... this manual page is a lil vintage, and honestly? vintage is a vibe. π now go forth and convert your embedded tests, you gorgeous genius. mwah. π β¨
π¦ where this page comes from
- debian trixie: libpod-tests-perl 1.20-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpod-tests-perl 1.20-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-tests-perl 1.20-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-tests-perl 1.20-4 Β· 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