Prima::sys::Test(3)
π Prima::sys::Test β GUI test tools π
okay bestie so this is Prima::sys::Test, a page from the User Contributed Perl Documentation (perl v5.42.3, dated 2026-09-16, if you were wondering). Let's get into it. π¦
β¨ NAME β¨
Prima::sys::Test</purpose> β GUI test tools. that's it, that's the whole name, short and iconic. π
πΈ DESCRIPTION πΈ
so this module is like a lil toolkit β it holds a small set of tools that you use for testing Prima-related code, and it plays nice with the standard perl Test:: suite. basically it's the bestie that holds your hand while you test GUI stuff. π«Ά
π SYNOPSIS π
here's the vibe, literally copy this energy:
use Test::More;
use Prima::Test;
plan tests => 1;
ok( create_window, "can create window");
look at that. clean. slays. β¨
π USAGE π
π Methods π
create_window %argsβ creates a standard simple Prima window and hands it right back to you. that's it, that's the job. πset_flag,get_flag,reset_flagβ these three are the flag squad π© they manipulate the state of the internal$flag, and that$flagis the thing that stops the event loop once it's set. so like, very important lil flag, no cap.wait_flagβ waits for the flag to be raised, but only for 500 msec β±οΈ and if it never shows up, it just returns false. no drama, just false.
π no-X11 environment π
by default this module fires a skip_all condition if you're running without an X11 connection. very "not me catching an error" energy. π
but if your test can actually run without X11, do it like this:
use Prima::Test qw(noX11);
and that tells the module not to do any GUI initialization at all. periodt. π
π AUTHORS π
the icons behind this:
- Upasana Shukla,
<me@upasana.me> - Dmitry Karasik,
<dmitry@karasik.eu.org>
π¦ SEE ALSO π¦
go peek at these, iykyk:
Primat/*/*.t
and that's the whole page bestie!! π this was perl v5.42.3, dated 2026-09-16, and it's the User Contributed Perl Documentation's Prima::sys::Test(3) page β go forth and test ur GUI code, ur doing amazing, mwah πβ¨π«Ά
π¦ where this page comes from
- fedora 44: perl-Prima-Test 1.78-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms