File: 03_qnet_state.t

package info (click to toggle)
libpoe-component-irc-perl 6.93%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,532 kB
  • sloc: perl: 16,219; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings FATAL => 'all';
use POE;
use POE::Component::IRC::Qnet::State;
use Test::More tests => 1;

my $bot = POE::Component::IRC::Qnet::State->spawn();
isa_ok($bot, 'POE::Component::IRC::Qnet::State');
$bot->yield('shutdown');

$poe_kernel->run();

POE::Session->create(
    package_states => [ main => ['_start'] ],
);

sub _start {
    $bot->yield('shutdown');
}