Test::...nknown(3pm)
πΈ Test::Run::Obj::IntOrUnknown π
okay so bestie, welcome to the manual page for Test::Run::Obj::IntOrUnknown β it's a Perl module (3pm, user contributed docs, iykyk), and it's literally an object that holds either an int or an "unknown". That's it. That's the whole vibe. Sometimes you know the number, sometimes you simply do not, and this lil guy holds space for both π«Ά
β¨ NAME β¨
Test::Run::Obj::IntOrUnknown β an object representing a int or unknown. (Yes, "a int". We don't fix the author's grammar, we respect the author's grammar. Periodt. π)
π¦ DESCRIPTION π¦
It inherits from Test::Run::Base::Struct. That's the family tree, no cap, that's where all the struct-y goodness comes from. π
π METHODS π
π $class->create_unknown()
Creates an unknown value. When you don't know, you don't know, and now you have an object that says so. Mystery main character energy. π₯
π $class->create_int($integer)
Creates an integer value. You do know this one. Slay. β¨
π zero()
A new 0 constant. Zero. Zilch. Nothing. But make it an object. Iconic. π
π§ $class->init_from_string("??" | [Integer])
Inits a value from a string. You can hand it "??", or you can hand it a thing in the shape of an [Integer]. Yes, that's the notation, don't come for me, I'm just the messenger. πΈ
β $self->get_string_val()
Returns "??" if the value is undefined, or its numeric value otherwise. So: unknown β "??", known β the number. Simple as. π
π SEE ALSO π
Test::Run::Base::StructTest::Run::ObjTest::Run::Core
Go read those too, bestie, they're the rest of the friend group. π«Ά
π COPYRIGHT π
Copyright by Shlomi Fish, 2009. Respect the elder. π
π LICENSE π
This file is freely distributable under the MIT X11 license.
<http://www.opensource.org/licenses/mit-license.php>
fr fr, go read the license, it's short and it's your bestie for legal reasons. π
β¨ AUTHOR β¨
Shlomi Fish, <http://www.shlomifish.org/>.
and that's the whole page, bestie!! π this was written against perl v5.42.0, dated 2025-07-25, and it's the Test::...nknown(3pm) page in all its user-contributed-Perl-documentation glory. mwah πβ¨
π¦ where this page comes from
- fedora 43: perl-Test-Run 0.0306-3.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms