The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::Smoke::PostQueue - Queue mechanism for re-posting reports.

SYNOPSIS

    use Test::Smoke::PostQueue;
    my $queue = Test::Smoke::PostQueue->new(
        qfile  => $qfile,
        adir   => $adir,
        poster => $poster
    );

    $queue->add($patch);

    $queue->handle_queue();

DESCRIPTION

This is implemented as a singleton.

It can only work if archiving is true.

Test::Smoke::PostQueue->new(%arguments)

Returns an instantiated object, if it was already created, return that one.

Arguments

Named, list:

qfile

The file we keep the queue in (one patchlevel per line)

adir

The archive directory to get the report (jsn) from.

poster

This must be an instance of Test::Smoke::Poster with ddir set to adir.

v

Verbosity.

$queue->add($patchlevel)

Adds an item to the queue-file.

$queue->handle()

This reads the queue-file and tries to post every report it can find in the archive.

$queue->purge

Removes all entries that do not exist in adir.

COPYRIGHT

© 2002-2013, Abe Timmerman <abeltje@cpan.org> All rights reserved.

See AUTHORS for contributers.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See:

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.