aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lib/Test/Irssi/VirtualIrssi.pm
diff options
context:
space:
mode:
Diffstat (limited to 'testing/lib/Test/Irssi/VirtualIrssi.pm')
-rw-r--r--testing/lib/Test/Irssi/VirtualIrssi.pm32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/lib/Test/Irssi/VirtualIrssi.pm b/testing/lib/Test/Irssi/VirtualIrssi.pm
new file mode 100644
index 0000000..dc3bfc7
--- /dev/null
+++ b/testing/lib/Test/Irssi/VirtualIrssi.pm
@@ -0,0 +1,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
+ => (
+ );
+}