Test::Dir(3pm)
π Test::Dir β the vibe
okay bestie, so this is Test::Dir, a perl module (manual page Test::Dir(3pm) β User Contributed Perl Documentation, if you were wondering where it lives on the shelf) and it's literally just here to test directory attributes with you. no cap. π
β¨ NAME β¨
Test::Dir β test directory attributes π¦
β¨ SYNOPSIS β¨
use Test::More ...;
use Test::Dir;
that's it. that's the whole setup. team up with Test::More and go off. π
β¨ DESCRIPTION β¨
soooo this module is a whole collection of test utilities for directory attributes. use it in combination with Test::More in your test programs. that's the assignment, that's the plot, she's giving quality-assurance main character energy. π₯
β¨ FUNCTIONS β¨
here's the roster. every single one takes the same shape β note that TESTNAME is optional, it's in the brackets for a reason bestie, don't skip the brackets. π
πΈ dir_exists_ok(DIRNAME [, TESTNAME] )
ok if the directory exists, and not ok otherwise. the classic. the blueprint. β¨
πΈ dir_not_exists_ok(DIRNAME [, TESTNAME] )
ok if the directory does not exist, and not ok otherwise. the inverse queen. π
πΈ dir_empty_ok(DIRNAME [, TESTNAME] )
ok if the directory is empty (contains no files or subdirectories, we are being very specific here), and not ok otherwise. β vibes. π³οΈ
πΈ dir_not_empty_ok(DIRNAME [, TESTNAME] )
ok if the directory is not empty, and not ok otherwise. she has things in her. π
πΈ dir_readable_ok(DIRNAME [, TESTNAME] )
ok if the directory is readable, and not ok otherwise. can we read her? π
πΈ dir_not_readable_ok(DIRNAME [, TESTNAME] )
ok if the directory is not readable, and not ok otherwise. mysterious. elusive. π
πΈ dir_writable_ok(DIRNAME [, TESTNAME] )
ok if the directory is writable, and not ok otherwise. permission to make a mess granted. βοΈ
πΈ dir_not_writable_ok(DIRNAME [, TESTNAME] )
ok if the directory is not writable, and not ok otherwise. hands off, she's protected. π«
πΈ dir_executable_ok(DIRNAME [, TESTNAME] )
ok if the directory is executable, and not ok otherwise. she can move. π
πΈ dir_not_executable_ok(DIRNAME [, TESTNAME] )
ok if the directory is not executable, and not ok otherwise. no walking. sitting only. πͺ
π TO DO π
ngl, the author is fully aware there are a lot more directory attributes that can be tested. if you need them, please ask (or better yet, contribute code!) β that's not me being pushy, that's a direct quote of the mission statement bestie. open source is a group project. π«Ά
π AUTHOR π
Martin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>. give him his flowers. πΈ
π BUGS π
please report any bugs or feature requests to "bug-test-dir at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Dir>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. the full loop. the circle of dev life. π
π SUPPORT π
you can find documentation for this module with the perldoc command.
perldoc Test::Dir
you can also look for information at:
- RT: CPAN's request tracker β <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Dir>
- AnnoCPAN: Annotated CPAN documentation β <http://annocpan.org/dist/Test-Dir>
- CPAN Ratings β <http://cpanratings.perl.org/d/Test-Dir>
- Search CPAN β <http://search.cpan.org/dist/Test-Dir>
π§ ACKNOWLEDGEMENTS π§
(crickets. beautiful, respectful crickets. nothing listed here fr fr β the section exists, that's all she wrote.) π¦
π COPYRIGHT & LICENSE π
Copyright (C) 2007-2008 Martin 'Kingpin' Thurn
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie!! π this one's perl v5.36.0, dated 2022-10-13, so if you're reading this from the future, hi, hope the directory attributes are still testing correctly. mwah. ππβ¨
π¦ where this page comes from
- ubuntu noble: libtest-dir-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-dir-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-dir-perl 1.16-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