Test::S...re::Ref(3)
π Test::Stream::Compare::Ref π
okay bestie, gather round, because this is Test::Stream::Compare::Ref from the User Contributed Perl Documentation section, and it's a whole mood. it's a ref comparison situation. let's get into it π«Ά
β¨ NAME β¨
Test::Stream::Compare::Ref β ref comparison, periodt. that's the whole gig π
π¨ DEPRECATED π¨
okay so, not me having to tell you this π but this whole distribution is deprecated. it's been retired in favor of Test2, Test2::Suite, and Test2::Workflow. like, it's giving "retired but still iconic." π
if you need to make the switch, there's a conversion guide waiting for you at Test::Stream::Manual::ToTest2. go check it out, bestie, fr fr. π§
πΈ DESCRIPTION πΈ
it's used to compare 2 refs in a deep comparison. that's it, that's the vibe. simple, elegant, lowkey doing the most by doing the least. β¨
π¦ SYNOPSIS π¦
my $ref = {};
my $check = Test::Stream::Compare::Ref->new(input => $ref);
# Passes
is( [$ref], [$check], "The array contains the exact ref we want" );
# Fails, they both may be empty hashes, but we are looking for a specific
# reference.
is( [{}], [$check], "This will fail");
see how the first one passes? that's because it's the exact ref we want, no cap. π
and the second one fails because even though both are empty hashes, we're looking for a specific reference. it's giving "same energy, different identity." the vibe check does not pass, sorry babe π
π₯ 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>
π AUTHORS π
Chad Granum <exodist@cpan.org>
π 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 documented as part of perl v5.42.0, dated 2025-07-25, and honestly? iconic of it. slay, stay safe, and may all your refs be the exact ones you're looking for π β¨π«Ά
π¦ 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