ExtUti...iliary(3pm)
πΈ NAME πΈ
okay so bestie, welcome to ExtUtils::ModuleMaker::Auxiliary (that's the 3pm one, perl docs, you know the vibe) β it's a little grab-bag of subroutines for testing ExtUtils::ModuleMaker. no cap, that's the whole job description. π
β¨ DESCRIPTION β¨
so basically this package is holding a bunch of subroutines that get used in one or more of the t/*.t files in ExtUtils::ModuleMaker's test suite. π§ͺ
and like β they might prove useful if you're out here writing test suites for distributions that subclass ExtUtils::ModuleMaker. it's giving "helper functions you didn't know you needed." π«Ά
π SUBROUTINES π
read_file_string()
- Function: read the contents of a file into a string. yes, the whole thing, one string, slay. π
- Argument: a string holding the name of a file created by
complete_build(). - Returns: a string holding the text of the file read.
- Used: to see whether the text of files such as
README,Makefile.PL, etc. was created correctly β it hands you back a string that you can match a pattern against. iconic. β¨
read_file_array()
- Function: read a file line-by-line into an array. one line per element, no notes. π
- Argument: a string holding the name of a file created by
complete_build(). - Returns: an array holding the lines of the file read.
- Used: to see whether the text of files such as
README,Makefile.PL, etc. was created correctly β it hands you back an array whose elements you can match patterns against. π
five_file_tests()
- Function: verify that the content of
MANIFESTandlib/*.pmwere created correctly. - Argument: two arguments, bestie, count 'em:
- A number predicting the number of entries in the
MANIFEST. - A reference to an array holding the components of the module's name, e.g.:
- A number predicting the number of entries in the
[ qw( Alpha Beta Gamma ) ]
- Returns: n/a. nothing, nada, it just does the tests. π
- Used: to see whether
MANIFESTandlib/*.pmhave correct text. it runs 6 Test::More tests:- Number of entries in
MANIFEST. - Change to directory under
lib. - Applies
read_file_stringto thestem.pmfile. - Determine whether
stem.pm's POD contains module name and abstract. - Determine whether POD contains a
HISTORYhead. - Determine whether POD contains correct author information.
- Number of entries in
six whole tests in one little subroutine. she's efficient, she's booked, she's busy. π
check_MakefilePL()
- Function: verify that the content of
Makefile.PLwas created correctly. - Argument: two arguments:
- A string holding the directory in which the
Makefile.PLshould have been created. - A reference to an array holding strings, each of which is a prediction as to the content of particular lines in
Makefile.PL.
- A string holding the directory in which the
- Returns: n/a. again, nothing back, she's just checking. π
- Used: to see whether the
Makefile.PLcreated bycomplete_build()has correct entries. it runs 1 Test::More test which checksNAME,VERSION_FROM,AUTHORandABSTRACT. all four, in one test, main character energy fr fr. π₯
π SEE ALSO π
- ExtUtils::ModuleMaker.
okay that's the whole page, you're caught up, go write some tests bestie π this lil doc is from perl v5.36.0, dated 2023-01-27 β User Contributed Perl Documentation, ExtUtils::ModuleMaker::Auxiliary(3pm). mwah, bye! ππ¦π
π¦ where this page comes from
- debian bookworm: libextutils-modulemaker-perl 0.63-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libextutils-modulemaker-perl 0.63-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libextutils-modulemaker-perl 0.63-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libextutils-modulemaker-perl 0.63-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libextutils-modulemaker-perl 0.63-3 Β· 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