Test::...nction(3pm)
π Test::Data::Function β the manual, but make it a group chat π
okay bestie, so this page is from the User Contributed Perl Documentation collection, and it's all about Test::Data::Function. pull up a chair, we're doing this π
β¨ NAME β¨
Test::Data::Function β test functions for functions π
like, yes, that's the whole name. it tests functions. for functions. it's giving "functions all the way down" and honestly? iconic.
πΈ SYNOPSIS πΈ
the whole entire vibe check you need:
use Test::Data qw(Function);
that's it. that's the girl. load it up and go π¦
π DESCRIPTION π
okay so this module is out here providing test functions for subroutine sorts of things. subroutines! functions! the little reusable blocks we all know and love π
if you've got a sub and you wanna poke at it with a test, this is your module. no cap.
π§ Functions
here's the lineup, bestie β just the one, but she's doing her best:
prototype_ok( PROTOTYPE, SUB [, NAME ] )β the one and only function in this module. you hand her a prototype, a sub, and optionally a name, and she does her thing β¨
π SEE ALSO π
go read these too, fr fr, they're the rest of the fam:
Test::DataTest::Data::ArrayTest::Data::HashTest::Data::ScalarTest::Builder
π SOURCE AVAILABILITY π
the source is living its best life on GitHub:
https://github.com/briandfoy/test-data
go star it, go read it, go lurk. the way that it's right there?? obsessed π
π AUTHOR π
brian d foy, <briandfoy@pobox.com> β main character energy, truly π
π COPYRIGHT AND LICENSE π
Copyright Β© 2002-2025, brian d foy <briandfoy@pobox.com>. All rights reserved.
okay so legally speaking, this program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. that's the license, bestie, don't skip it π
and that's the whole page!! π«Ά this came to you from the User Contributed Perl Documentation crew, and the footer says it's for perl v5.40.1, dated 2025-04-17, and the title line is Test::...nction(3pm) because the terminal was being dramatic and truncating things π slay, bye bestie πβ¨
π¦ where this page comes from
- debian trixie: libtest-data-perl 1.248-1 Β· Artistic-2.0
- ubuntu resolute: libtest-data-perl 1.248-1 Β· Artistic-2.0
- ubuntu stonking: libtest-data-perl 1.248-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms