Test::S...Pattern(3)
π Test::Stream::Compare::Pattern π
okay bestie, so this is a page from the User Contributed Perl Documentation for the module Test::Stream::Compare::Pattern β she's a little Perl gem, and we're gonna walk through her together, no cap. π
β¨ NAME β¨
Test::Stream::Compare::Pattern β use a pattern to validate values in a deep comparison. literally that's her whole thing. π¦
π¨ DEPRECATED π¨
bestie. listen. this one's deprecated. π
This whole distribution is deprecated, and it's been replaced by Test2, Test2::Suite, and Test2::Workflow.
If you need to make the switch, there's a conversion guide waiting for you in Test::Stream::Manual::ToTest2. she'll hold your hand through it fr fr. π«Ά
πΈ DESCRIPTION πΈ
So here's the vibe: this lets you use a regex to validate a value inside a deep comparison. β¨
the way that sometimes a value just needs to look right, and it doesn't actually need to be an exact match?? yeah. that's the moment. π
Classic example: a memory address. It's gonna change from run to run, so hardcoding it is giving chaos. but a pattern? a pattern ate. π
π SOURCE π
The source code repository for Test::Stream lives right here, go be nosy:
http://github.com/Test-More/Test-Stream/
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>β the icon holding it down. π
π AUTHORS π
- Chad Granum
<exodist@cpan.org>β yes, same person, she's the whole main character here. π
π COPYRIGHT π
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
http://dev.perl.org/licenses/
and that's the whole page, bestie!! π this was perl v5.42.0, dated 2025-07-25, from the User Contributed Perl Documentation β mwah, take care of her, and maybe go check out Test2 instead. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Test-Stream 1.302027-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms