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