Tirex:...::Test(3pm)
π Tirex:...::Test(3pm) β bestie's guide to the fake manager π
okay so you found Tirex:...::Test(3pm) in the User Contributed Perl Documentation and you're like "what is this lil guy" β don't worry, I got you π«Ά
β¨ NAME β¨
Tirex::Manager::Test β a dummy rendering manager, but make it for testing π§ͺ
πΈ SYNOPSIS πΈ
use Tirex::Manager::Test;
my $queue = Tirex::Queue->new();
my $rm = Tirex::Manager::Test->new( queue => $queue );
$rm->set_load(1.5);
print $rm->get_load();
$rm->schedule();
like, that's the whole vibe. instantiate, fake a load, read it back, schedule. slay π
π¦ DESCRIPTION π¦
so this is a dummy version of the Tirex::Manager rendering manager class, and it exists purely for testing. periodt.
it's a child class of the normal Tirex::Manager class, and honestly? it behaves just like it, with one iconic little twist: you can set the "system load" yourself with set_load(), and then that exact load comes back at you from the get_load() method. so yes bestie, you can simulate the system load in your tests π no cap, no real machine required.
this class also has a dummy version of the send() method that doesn't actually send the message. it's giving "I'm just pretending" energy π the message is not going anywhere. it's fine. it's fine.
π METHODS π
$rm->get_load()
get the load that was set with set_load(). that's it. that's the method. get you a method that just... returns the thing you told it π
$rm->set_load($load)
set the load. go off, make it 1.5, make it whatever, you're the main character of this test suite β¨
$rm->send($job)
simulate sending a job to the rendering daemon. simulate being the key word here β nothing actually gets sent, it's all theater, and it ate π
π SEE ALSO π
Tirex::Manager
okay reminder bestie: this is a dummy class for testing. the send() does not send. the load is whatever you set. don't ship it and expect real daemons to do real things π
perl v5.40.1 Β· 2026-08-09
and that's the whole page, mwah π written up with love from the User Contributed Perl Documentation, byeeee π
π¦ where this page comes from
- ubuntu stonking: tirex 0.8.0+ds-2build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms