logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       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.

Methods

$rm->get_load()
       Get the load that was set with set_load().

   $rm->set_load($load)
       Set the load.

   $rm->send($job)
       Simulate sending a job to the rendering daemon.

Name

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

See Also

       Tirex::Manager

perl v5.40.1                                       2025-08-07                          Tirex::Manager::Test(3pm)

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

See Also