Test::Data(3pm)

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

✨ Test::Data ✨

okay so bestie, welcome to Test::Data (that's the Test::Data(3pm) situation, User Contributed Perl Documentation edition) β€” literally the manual page for Test::Data, and it's giving "utility functions to check ur data's whole vibe." no cap. 🫢


πŸ’– NAME πŸ’–

Test::Data β€” test functions for particular variable types. that's it, that's the name, slay. πŸ‘‘


🌸 SYNOPSIS 🌸

use Test::Data qw(Scalar Array Hash Function);

that's literally all u need to type to get started, bestie. four little words in the qw(), one big glow-up. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so Test::Data hands u utility functions that check the properties and values of data and variables. like, it's a vibe check but for ur variables. πŸ’…

πŸŽ€ Functions πŸŽ€

plug-in modules define functions for each data type. go look at the appropriate module, okay?? each one does its own thing and it's iconic for that. ⭐

🧚 How it works 🧚

okay the tea: the Test::Data module simply emports functions from Test::Data::* modules. yes, emports. we keep it exactly as written, it's part of the lore. πŸ™ˆ

each module defines a self-contained function, and puts that function name into @EXPORT. Test::Data defines its own import function, but honestly that does not matter to the plug-in modules β€” they don't care, they're booked and busy. πŸ’œ

want to write ur own plug-in module?? main character move, go off. follow the example of one that already exists. name the module Test::Data::Foo, where u replace Foo with the right name. Test::Data should automatically find it. no extra config, no drama, it just ✨finds it✨. 🌈


πŸ’€ BUGS πŸ’€

ok so real talk: "I'm not a very good Windows Perler, so some things don't work as they should on Windows." 😭

they recently got a Windows box so they can actually test things now, but if u run into problems β€” pls, they can use all the patches or advice you care to send. all of it. every crumb. send it. 🫢


πŸ”₯ SEE ALSO πŸ”₯

  • Test::Data::Scalar
  • Test::Data::Array
  • Test::Data::Hash
  • Test::Data::Function
  • Test::Builder

go read those too, iykyk. πŸ‘‘


🌈 SOURCE AVAILABILITY 🌈

the source lives in Github:

https://github.com/briandfoy/test-data

click it, clone it, star it, it's the whole vibe. ⭐


πŸ’œ AUTHOR πŸ’œ

brian d foy, "<briandfoy@pobox.com>"


Copyright Β© 2002-2025, brian d foy <briandfoy@pobox.com>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

legal speak but make it cute: yes u can redistribute and/or modify it, just keep it under the Artistic License 2.0. periodt. πŸ’…

and that's the whole page bestie!! πŸŽ€βœ¨ this was Test::Data(3pm) from perl v5.40.1, dated 2025-04-17 β€” go forth and test ur data, u absolute icon. πŸ’–πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from