Test::S...::Scalar(3)

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

πŸ’… Test::S...::Scalar(3) β€” the whole vibe

okay so bestie, welcome to Test::Stream::Compare::Scalar(3), aka the lil module that shows up in your deep comparisons when somebody's got a scalar reference and needs it, like, represented. she's short, she's deprecated, she's still iconic. let's get into it 🫢


🌸 NAME 🌸

Test::Stream::Compare::Scalar β€” the representation of a Scalar Ref in deep comparisons. that's it, that's her whole job. πŸ’–


πŸ’€ DEPRECATED πŸ’€

not me having to tell you this… this distribution is deprecated, fr fr. it's been retired in favor of Test2, Test2::Suite, and Test2::Workflow.

if you're tryna convert, there's a whole guide: see Test::Stream::Manual::ToTest2. it's giving "glow up instructions." ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this thing gets used in deep comparisons to represent a scalar reference. lowkey that's the entire description. she's a niche queen and she knows it πŸ‘‘


✨ SYNOPSIS ✨

here's how you'd actually use her, no cap:

my $sr = Test::Stream::Compare::Scalar->new(item => 'foo');

is([\'foo'], $sr, "pass");
is([\'bar'], $sr, "fail, different value");
is(['foo'],  $sr, "fail, not a ref");

see how it goes? first one slays, second one is a whole different value so it fails, and third one isn't even a ref so that's a fail too. vibe check: passed on one, failed on two. that's just how it is πŸ’…


πŸŽ€ SOURCE πŸŽ€

the source code repo for Test::Stream lives at:

http://github.com/Test-More/Test-Stream/

go look, it's cute, tell her I said hi πŸ’œ


πŸ‘‘ 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/ for the whole legal situation, bestie. πŸ“œ


⭐ and that's the page! this was Test::S...::Scalar(3) from the User Contributed Perl Documentation, shipped with perl v5.42.0 and dated 2025-07-25. stay hydrated, keep your refs deep-comparable, and remember: deprecated doesn't mean forgotten. bye babes πŸŽ€πŸ’…πŸ¦‹
πŸ“¦ where this page comes from