Test::...nction(3pm)

πŸ“¦
version 1.248 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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::Data
  • Test::Data::Array
  • Test::Data::Hash
  • Test::Data::Scalar
  • Test::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 Β© 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