DOKK / manpages / debian 12 / tirex / Tirex::Manager::Test.3pm.en
Tirex::Manager::Test(3pm) User Contributed Perl Documentation Tirex::Manager::Test(3pm)

Tirex::Manager::Test - Dummy rendering manager for testing

 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();

This is a dummy version of the Tirex::Manager rendering manager class for testing. It is a child class of the normal Tirex::Manager class and behaves just like it except that you can set the "system load" with set_load() and this load is returned by the get_load() method. This way the system load can be simulated in tests.

This class also has a dummy version of the send() method that doesn't actually send the message.

Get the load that was set with set_load().

Set the load.

Simulate sending a job to the rendering daemon.

Tirex::Manager

2023-04-11 perl v5.36.0