Test::...teHash(3pm)

πŸ“¦
version 0.2.2 Β· 2 versions
, in fedora 43

πŸ’– Test::Data::Split::Backend::ValidateHash πŸ’–

okay bestie, welcome to the manual page for Test::Data::Split::Backend::ValidateHash, living its best life in the Test::...teHash(3pm) slot of your friendly neighborhood User Contributed Perl Documentation. pull up a chair, this one's short and sweet πŸ“


✨ NAME ✨

Test::Data::Split::Backend::ValidateHash β€” a hash backend that does input validation and transformation. it's giving "we don't just store your data, we ✨curate✨ it." πŸ’…


🌸 VERSION 🌸

version 0.2.2 β€” she's small but mighty, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

See the tests.

that's it. that's the synopsis. the tests are the moment, iykyk πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

This one inherits from Test::Data::Split::Backend::Hash. like, that's its whole lineage. iconic family tree, honestly. πŸ‘‘


πŸŽ€ METHODS πŸŽ€

πŸ’« $pkg->populate([$id1,$data1,$id2,$data2,$id3,$data3...]); πŸ’«

okay so this populates the hash with the IDs and data you hand it, passed in as an even-lengthed array reference. and listen β€” the IDs must be unique, and the validate_and_transform method must be implemented. no shortcuts, bestie, that's the vibe check. βœ‹

It accepts an {id => $id, data => $data} hash reference, and then it either throws an exception or returns the transformed/mutated data (which can totally be the same as the original, no glow-up required). 🌈


🫢 SUPPORT 🫢

🌐 Websites 🌐

the following websites have more info about this module and may be of help to you. and as always β€” beyond these, just use your fave search engine to go discover more resources. the internet is huge, go explore. 🧚


πŸ› Bugs / Feature Requests πŸ›

please report any bugs or feature requests by email to bug-test-data-split at rt.cpan.org, or through the web interface at <https://rt.cpan.org/Public/Bug/Report.html?Queue=Test-Data-Split>. and the best part? you will be automatically notified of any progress on the request by the system. so you'll never be left on read. πŸ’Œ


πŸ‘©πŸ’» Source Code πŸ‘©πŸ’»

the code is open to the world, and available for you to hack on. please feel free to browse it and play with it, or whatever. if you want to contribute patches, please send me a diff or prod me to pull from your repository :) β€” main character energy, we love to see it.

<https://github.com/shlomif/perl-Test-Data-Split>

git clone git://github.com/shlomif/perl-Test-Data-Split.git

πŸ‘‘ AUTHOR πŸ‘‘

Shlomi Fish <shlomif@cpan.org> β€” the legend themselves. πŸ’–


πŸ’€ BUGS πŸ’€

please report any bugs or feature requests on the bugtracker website <https://github.com/shlomif/perl-Test-Data-Split/issues>

when submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. receipts, bestie β€” we need receipts. 🧾


This software is Copyright (c) 2014 by Shlomi Fish.

This is free software, licensed under:

The MIT (X11) License

and that's the whole page, periodt. πŸ’…βœ¨ this was perl v5.42.0, dated 2025-07-25 β€” and you read it in the Test::...teHash(3pm) section of the User Contributed Perl Documentation. mwah, love u, go validate some hashes responsibly πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from