aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lib/Test/Irssi/VirtualIrssi.pm
blob: dc3bfc76cc60db39a64cfd88b3a0f0bdf87960dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use strictures 1;
use MooseX::Declare;

class Test::Irssi::VirtualIrssi {

# class that pretends to be irssi which you can pull out various data from.


has cursor
 => (
     is      => 'ro',
     writer  => '_set_cursor',
     isa     => 'ArrayRef[Int]',
     default => sub { [0, 0] },
    );

has topic_row
 => (
    );

has window_row
 => (
    );

has prompt_row
 => (
    );

has window
 => (
    );
}