Test::S...re::Ref(3)

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

πŸ’– 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 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